forked from AuroraMiddleware/gtk
gtkrecentchoosermenu: unseal private pointer
This commit is contained in:
parent
37a499cea6
commit
3dfaf72745
@ -125,7 +125,6 @@ enum {
|
|||||||
#define FALLBACK_ITEM_LIMIT 10
|
#define FALLBACK_ITEM_LIMIT 10
|
||||||
#define DEFAULT_LABEL_WIDTH 30
|
#define DEFAULT_LABEL_WIDTH 30
|
||||||
|
|
||||||
#define GTK_RECENT_CHOOSER_MENU_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_RECENT_CHOOSER_MENU, GtkRecentChooserMenuPrivate))
|
|
||||||
|
|
||||||
static void gtk_recent_chooser_menu_finalize (GObject *object);
|
static void gtk_recent_chooser_menu_finalize (GObject *object);
|
||||||
static void gtk_recent_chooser_menu_dispose (GObject *object);
|
static void gtk_recent_chooser_menu_dispose (GObject *object);
|
||||||
@ -266,11 +265,13 @@ static void
|
|||||||
gtk_recent_chooser_menu_init (GtkRecentChooserMenu *menu)
|
gtk_recent_chooser_menu_init (GtkRecentChooserMenu *menu)
|
||||||
{
|
{
|
||||||
GtkRecentChooserMenuPrivate *priv;
|
GtkRecentChooserMenuPrivate *priv;
|
||||||
|
|
||||||
priv = GTK_RECENT_CHOOSER_MENU_GET_PRIVATE (menu);
|
menu->priv = G_TYPE_INSTANCE_GET_PRIVATE (menu,
|
||||||
|
GTK_TYPE_RECENT_CHOOSER_MENU,
|
||||||
menu->priv = priv;
|
GtkRecentChooserMenuPrivate);
|
||||||
|
|
||||||
|
priv = menu->priv;
|
||||||
|
|
||||||
priv->show_icons= TRUE;
|
priv->show_icons= TRUE;
|
||||||
priv->show_numbers = FALSE;
|
priv->show_numbers = FALSE;
|
||||||
priv->show_tips = FALSE;
|
priv->show_tips = FALSE;
|
||||||
|
@ -43,10 +43,10 @@ typedef struct _GtkRecentChooserMenuPrivate GtkRecentChooserMenuPrivate;
|
|||||||
|
|
||||||
struct _GtkRecentChooserMenu
|
struct _GtkRecentChooserMenu
|
||||||
{
|
{
|
||||||
/*< private >*/
|
|
||||||
GtkMenu parent_instance;
|
GtkMenu parent_instance;
|
||||||
|
|
||||||
GtkRecentChooserMenuPrivate *GSEAL (priv);
|
/* <private> */
|
||||||
|
GtkRecentChooserMenuPrivate *priv;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GtkRecentChooserMenuClass
|
struct _GtkRecentChooserMenuClass
|
||||||
|
Loading…
Reference in New Issue
Block a user