@@ -223,19 +223,22 @@ gimp_histogram_editor_init (GimpHistogramEditor *editor)
223223 gtk_widget_show (label );
224224 }
225225
226+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL , 4 );
227+ gtk_box_pack_start (GTK_BOX (editor ), hbox , FALSE, FALSE, 0 );
228+ gtk_widget_show (hbox );
229+
226230 editor -> toggle = gtk_check_button_new_with_label (_ ("Compute unique colors:" ));
227231 gimp_widget_set_identifier (editor -> toggle , "toggle-compute-unique-colors" );
228232 gimp_label_set_attributes (GTK_LABEL (gtk_bin_get_child (GTK_BIN (editor -> toggle ))),
229233 PANGO_ATTR_SCALE , PANGO_SCALE_SMALL ,
230234 -1 );
231235 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (editor -> toggle ), FALSE);
236+ gtk_box_pack_start (GTK_BOX (hbox ), editor -> toggle , FALSE, FALSE, 0 );
237+ gtk_widget_show (editor -> toggle );
238+
232239 g_signal_connect_swapped (editor -> toggle , "toggled" ,
233240 G_CALLBACK (gimp_histogram_editor_info_update ),
234241 editor );
235- gtk_widget_set_margin_start (gtk_bin_get_child (GTK_BIN (editor -> toggle )), 6 );
236- gtk_widget_set_halign (editor -> toggle , GTK_ALIGN_END );
237- gtk_grid_attach (GTK_GRID (grid ), editor -> toggle , 0 , 3 , 1 , 1 );
238- gtk_widget_show (editor -> toggle );
239242
240243 editor -> labels [6 ] = label = g_object_new (GTK_TYPE_LABEL ,
241244 "xalign" , 0.0 ,
@@ -245,7 +248,7 @@ gimp_histogram_editor_init (GimpHistogramEditor *editor)
245248 gimp_label_set_attributes (GTK_LABEL (label ),
246249 PANGO_ATTR_SCALE , PANGO_SCALE_SMALL ,
247250 -1 );
248- gtk_grid_attach ( GTK_GRID ( grid ), label , 1 , 3 , 1 , 1 );
251+ gtk_box_pack_start ( GTK_BOX ( hbox ), label , FALSE, FALSE, 0 );
249252 gtk_widget_show (label );
250253}
251254
0 commit comments