removed the label between the spinbuttons, it looks silly. Converted tabs
2004-06-20 Sven Neumann <sven@gimp.org> * app/widgets/gimphistogrambox.[ch]: removed the label between the spinbuttons, it looks silly. Converted tabs to spaces, removed trailing whitespace. * app/widgets/gimphistogrameditor.c * app/tools/gimpthresholdtool.c: changed accordingly.
This commit is contained in:

committed by
Sven Neumann

parent
ca7aac79d1
commit
d97fb0a287
@ -1,3 +1,12 @@
|
|||||||
|
2004-06-20 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* app/widgets/gimphistogrambox.[ch]: removed the label between the
|
||||||
|
spinbuttons, it looks silly. Converted tabs to spaces, removed
|
||||||
|
trailing whitespace.
|
||||||
|
|
||||||
|
* app/widgets/gimphistogrameditor.c
|
||||||
|
* app/tools/gimpthresholdtool.c: changed accordingly.
|
||||||
|
|
||||||
2004-06-19 Bill Skaggs <weskaggs@primate.ucdavis.edu>
|
2004-06-19 Bill Skaggs <weskaggs@primate.ucdavis.edu>
|
||||||
|
|
||||||
* app/widgets/gimphistogrambox.[ch]:
|
* app/widgets/gimphistogrambox.[ch]:
|
||||||
|
@ -271,7 +271,7 @@ gimp_threshold_tool_dialog (GimpImageMapTool *image_map_tool)
|
|||||||
gtk_box_pack_end (GTK_BOX (hbox), menu, FALSE, FALSE, 0);
|
gtk_box_pack_end (GTK_BOX (hbox), menu, FALSE, FALSE, 0);
|
||||||
gtk_widget_show (menu);
|
gtk_widget_show (menu);
|
||||||
|
|
||||||
box = gimp_histogram_box_new (_("Threshold Range"));
|
box = gimp_histogram_box_new ();
|
||||||
gtk_box_pack_start (GTK_BOX (vbox), box, TRUE, TRUE, 0);
|
gtk_box_pack_start (GTK_BOX (vbox), box, TRUE, TRUE, 0);
|
||||||
gtk_widget_show (box);
|
gtk_widget_show (box);
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
@ -192,10 +193,6 @@ gimp_histogram_box_init (GimpHistogramBox *box)
|
|||||||
G_CALLBACK (gimp_histogram_box_low_adj_update),
|
G_CALLBACK (gimp_histogram_box_low_adj_update),
|
||||||
box);
|
box);
|
||||||
|
|
||||||
box->label = gtk_label_new (NULL);
|
|
||||||
gtk_box_pack_start (GTK_BOX (hbox), box->label, TRUE, TRUE, 0);
|
|
||||||
gtk_widget_show (box->label);
|
|
||||||
|
|
||||||
/* high spinbutton */
|
/* high spinbutton */
|
||||||
spinbutton = gimp_spin_button_new (&adjustment,
|
spinbutton = gimp_spin_button_new (&adjustment,
|
||||||
255.0, 0.0, 255.0, 1.0, 16.0, 0.0,
|
255.0, 0.0, 255.0, 1.0, 16.0, 0.0,
|
||||||
@ -290,13 +287,9 @@ gimp_histogram_box_border_notify (GimpHistogramView *view,
|
|||||||
}
|
}
|
||||||
|
|
||||||
GtkWidget *
|
GtkWidget *
|
||||||
gimp_histogram_box_new (const gchar *label)
|
gimp_histogram_box_new (void)
|
||||||
{
|
{
|
||||||
GimpHistogramBox *box = g_object_new (GIMP_TYPE_HISTOGRAM_BOX, NULL);
|
return GTK_WIDGET (g_object_new (GIMP_TYPE_HISTOGRAM_BOX, NULL));
|
||||||
|
|
||||||
gtk_label_set_text (GTK_LABEL (box->label), label);
|
|
||||||
|
|
||||||
return GTK_WIDGET (box);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -34,7 +34,6 @@ struct _GimpHistogramBox
|
|||||||
{
|
{
|
||||||
GtkVBox parent_instance;
|
GtkVBox parent_instance;
|
||||||
|
|
||||||
GtkWidget *label;
|
|
||||||
GtkWidget *slider_area;
|
GtkWidget *slider_area;
|
||||||
GimpHistogramView *view;
|
GimpHistogramView *view;
|
||||||
|
|
||||||
@ -55,7 +54,7 @@ struct _GimpHistogramBoxClass
|
|||||||
|
|
||||||
GType gimp_histogram_box_get_type (void) G_GNUC_CONST;
|
GType gimp_histogram_box_get_type (void) G_GNUC_CONST;
|
||||||
|
|
||||||
GtkWidget * gimp_histogram_box_new (const gchar *label);
|
GtkWidget * gimp_histogram_box_new (void);
|
||||||
void gimp_histogram_box_set_channel (GimpHistogramBox *box,
|
void gimp_histogram_box_set_channel (GimpHistogramBox *box,
|
||||||
GimpHistogramChannel channel);
|
GimpHistogramChannel channel);
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ gimp_histogram_editor_init (GimpHistogramEditor *editor)
|
|||||||
editor->drawable = NULL;
|
editor->drawable = NULL;
|
||||||
editor->histogram = NULL;
|
editor->histogram = NULL;
|
||||||
editor->idle_id = 0;
|
editor->idle_id = 0;
|
||||||
editor->box = gimp_histogram_box_new (_("Intensity Range:"));
|
editor->box = gimp_histogram_box_new ();
|
||||||
|
|
||||||
editor->name = label = gtk_label_new (_("(None)"));
|
editor->name = label = gtk_label_new (_("(None)"));
|
||||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||||
|
Reference in New Issue
Block a user