GtkFileChooserButton: derive from GtkBox, not GtkHBox

This commit is contained in:
Matthias Clasen
2011-06-07 19:54:40 -04:00
parent 29e6646292
commit 34085147e9
2 changed files with 6 additions and 4 deletions

View File

@@ -52,6 +52,8 @@
#include "gtkfilechooserbutton.h"
#include "gtkorientable.h"
#include "gtktypebuiltins.h"
#include "gtkprivate.h"
@@ -342,7 +344,7 @@ static guint file_chooser_button_signals[LAST_SIGNAL] = { 0 };
* GType Declaration *
* ******************* */
G_DEFINE_TYPE_WITH_CODE (GtkFileChooserButton, gtk_file_chooser_button, GTK_TYPE_HBOX, { \
G_DEFINE_TYPE_WITH_CODE (GtkFileChooserButton, gtk_file_chooser_button, GTK_TYPE_BOX, { \
G_IMPLEMENT_INTERFACE (GTK_TYPE_FILE_CHOOSER, gtk_file_chooser_button_file_chooser_iface_init) \
})

View File

@@ -25,7 +25,7 @@
#ifndef __GTK_FILE_CHOOSER_BUTTON_H__
#define __GTK_FILE_CHOOSER_BUTTON_H__
#include <gtk/gtkhbox.h>
#include <gtk/gtkbox.h>
#include <gtk/gtkfilechooser.h>
G_BEGIN_DECLS
@@ -43,7 +43,7 @@ typedef struct _GtkFileChooserButtonClass GtkFileChooserButtonClass;
struct _GtkFileChooserButton
{
GtkHBox parent;
GtkBox parent;
/*< private >*/
GtkFileChooserButtonPrivate *priv;
@@ -52,7 +52,7 @@ struct _GtkFileChooserButton
struct _GtkFileChooserButtonClass
{
/*< private >*/
GtkHBoxClass parent_class;
GtkBoxClass parent_class;
void (* file_set) (GtkFileChooserButton *fc);