gtkfilechooserbutton: unseal private pointer

This commit is contained in:
Javier Jardón 2010-06-04 23:23:12 +02:00
parent d4813408b0
commit 01bdc682fd
2 changed files with 5 additions and 5 deletions

View File

@ -58,8 +58,6 @@
* Private Macros *
* **************** */
#define GTK_FILE_CHOOSER_BUTTON_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButtonPrivate))
#define DEFAULT_TITLE N_("Select A File")
#define DESKTOP_DISPLAY_NAME N_("Desktop")
#define FALLBACK_DISPLAY_NAME N_("(None)")
@ -434,7 +432,9 @@ gtk_file_chooser_button_init (GtkFileChooserButton *button)
GtkWidget *box, *image, *sep;
GtkTargetList *target_list;
priv = button->priv = GTK_FILE_CHOOSER_BUTTON_GET_PRIVATE (button);
priv = button->priv = G_TYPE_INSTANCE_GET_PRIVATE (button,
GTK_TYPE_FILE_CHOOSER_BUTTON,
GtkFileChooserButtonPrivate);
priv->icon_size = FALLBACK_ICON_SIZE;
priv->focus_on_click = TRUE;

View File

@ -43,10 +43,10 @@ typedef struct _GtkFileChooserButtonClass GtkFileChooserButtonClass;
struct _GtkFileChooserButton
{
/*< private >*/
GtkHBox parent;
GtkFileChooserButtonPrivate *GSEAL (priv);
/*< private >*/
GtkFileChooserButtonPrivate *priv;
};
struct _GtkFileChooserButtonClass