app: don't inherit from GtkHBox or GtkVBox
Instead, inherit from GtkBox directly and set the orientation in init(). Replace more gtk_container_add() by gtk_box_pack_start() in the reparented classes.
This commit is contained in:
@ -31,7 +31,7 @@ typedef struct _GimpHistogramBoxClass GimpHistogramBoxClass;
|
||||
|
||||
struct _GimpHistogramBox
|
||||
{
|
||||
GtkVBox parent_instance;
|
||||
GtkBox parent_instance;
|
||||
|
||||
GimpHistogramView *view;
|
||||
GtkWidget *color_bar;
|
||||
@ -43,7 +43,7 @@ struct _GimpHistogramBox
|
||||
|
||||
struct _GimpHistogramBoxClass
|
||||
{
|
||||
GtkVBoxClass parent_class;
|
||||
GtkBoxClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user