- entry.connect("focus_in_event",
- G_CALLBACK(replace_focus_in), 0);
- AddDialogData(entry, m_strReplace);
- GlobalTextureEntryCompletion::instance().connect(entry);
-
- auto check = ui::CheckButton("Within selected brushes only");
- check.show();
- vbox.pack_start(check, TRUE, TRUE, 0);
- AddDialogData(check, m_bSelectedOnly);
-
- vbox = ui::VBox(FALSE, 5);
- vbox.show();
- hbox.pack_start(vbox, FALSE, FALSE, 0);
-
- button = ui::Button("Apply");
- button.show();
- vbox.pack_start(button, FALSE, FALSE, 0);
- button.connect("clicked",
- G_CALLBACK(OnApply), 0);
- button.dimensions(60, -1);
-
- button = ui::Button("Close");
- button.show();
- vbox.pack_start(button, FALSE, FALSE, 0);
- button.connect("clicked",
- G_CALLBACK(OnClose), 0);
- button.dimensions(60, -1);
-
- return dlg;
+ entry.connect( "focus_in_event",
+ G_CALLBACK( replace_focus_in ), 0 );
+ AddDialogData( entry, m_strReplace );
+ GlobalTextureEntryCompletion::instance().connect( entry );
+
+ auto check = ui::CheckButton( "Within selected brushes only" );
+ check.show();
+ vbox.pack_start( check, TRUE, TRUE, 0 );
+ AddDialogData( check, m_bSelectedOnly );
+
+ vbox = ui::VBox( FALSE, 5 );
+ vbox.show();
+ hbox.pack_start( vbox, FALSE, FALSE, 0 );
+
+ button = ui::Button( "Apply" );
+ button.show();
+ vbox.pack_start( button, FALSE, FALSE, 0 );
+ button.connect( "clicked",
+ G_CALLBACK( OnApply ), 0 );
+ button.dimensions(60, -1);
+
+ button = ui::Button( "Close" );
+ button.show();
+ vbox.pack_start( button, FALSE, FALSE, 0 );
+ button.connect( "clicked",
+ G_CALLBACK( OnClose ), 0 );
+ button.dimensions(60, -1);
+
+ return dlg;