+2003-09-21 Matthias Clasen <maclas@gmx.de>
+
+ Changes to make cross-process merging feasible:
+
+ * gtk/gtkuimanager.[hc]: Add a readonly "ui" property which holds the
+ merged UI definition. Remove the "changed" signal, since its role
+ is now filled by "notify::ui". Instead add a "actions-changed" signal
+ which gets emitted when the set of actions changes.
+
+ * gtk/gtktoggleactionprivate.h:
+ * gtk/gtktoggleaction.[hc] (gtk_toggle_action_[sg]et_draw_as_radio):
+ Add a "draw_as_radio" property to toggle actions so that they can be
+ used as proxies for radio actions much like the "draw_as_radio"
+ property on check menu items enables them to operate as proxies for
+ radio actions.
+
+ Prevent the "show_all" trap for action-based menus (see
+ http://mail.gnome.org/archives/gtk-devel-list/2003-September/
+ msg00260.html):
+
+ * gtk/gtkmenu.c (gtk_menu_{hide,show}_all): Remove g_return_if_fail()
+ calls from static functions.
+
+ * gtk/gtkuimanager.c (update_node):
+ * gtk/gtkaction.c (connect_proxy): Set "no_show_all" on constructed
+ widgets whose visibility is externally controlled.
+
+ * gtk/gtkwidget.[hc] (gtk_widget_[gs]et_no_show_all): Add a boolean
+ "no_show_all" property with setter and getter. When TRUE, it keeps
+ gtk_widget_{hide,show}_all() from modifying the visibility of the
+ widget and its children.
+
Sun Sep 21 23:13:37 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktextview.[ch]: Add new "tab moves focus" property (#122709)
+2003-09-21 Matthias Clasen <maclas@gmx.de>
+
+ Changes to make cross-process merging feasible:
+
+ * gtk/gtkuimanager.[hc]: Add a readonly "ui" property which holds the
+ merged UI definition. Remove the "changed" signal, since its role
+ is now filled by "notify::ui". Instead add a "actions-changed" signal
+ which gets emitted when the set of actions changes.
+
+ * gtk/gtktoggleactionprivate.h:
+ * gtk/gtktoggleaction.[hc] (gtk_toggle_action_[sg]et_draw_as_radio):
+ Add a "draw_as_radio" property to toggle actions so that they can be
+ used as proxies for radio actions much like the "draw_as_radio"
+ property on check menu items enables them to operate as proxies for
+ radio actions.
+
+ Prevent the "show_all" trap for action-based menus (see
+ http://mail.gnome.org/archives/gtk-devel-list/2003-September/
+ msg00260.html):
+
+ * gtk/gtkmenu.c (gtk_menu_{hide,show}_all): Remove g_return_if_fail()
+ calls from static functions.
+
+ * gtk/gtkuimanager.c (update_node):
+ * gtk/gtkaction.c (connect_proxy): Set "no_show_all" on constructed
+ widgets whose visibility is externally controlled.
+
+ * gtk/gtkwidget.[hc] (gtk_widget_[gs]et_no_show_all): Add a boolean
+ "no_show_all" property with setter and getter. When TRUE, it keeps
+ gtk_widget_{hide,show}_all() from modifying the visibility of the
+ widget and its children.
+
Sun Sep 21 23:13:37 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktextview.[ch]: Add new "tab moves focus" property (#122709)
+2003-09-21 Matthias Clasen <maclas@gmx.de>
+
+ Changes to make cross-process merging feasible:
+
+ * gtk/gtkuimanager.[hc]: Add a readonly "ui" property which holds the
+ merged UI definition. Remove the "changed" signal, since its role
+ is now filled by "notify::ui". Instead add a "actions-changed" signal
+ which gets emitted when the set of actions changes.
+
+ * gtk/gtktoggleactionprivate.h:
+ * gtk/gtktoggleaction.[hc] (gtk_toggle_action_[sg]et_draw_as_radio):
+ Add a "draw_as_radio" property to toggle actions so that they can be
+ used as proxies for radio actions much like the "draw_as_radio"
+ property on check menu items enables them to operate as proxies for
+ radio actions.
+
+ Prevent the "show_all" trap for action-based menus (see
+ http://mail.gnome.org/archives/gtk-devel-list/2003-September/
+ msg00260.html):
+
+ * gtk/gtkmenu.c (gtk_menu_{hide,show}_all): Remove g_return_if_fail()
+ calls from static functions.
+
+ * gtk/gtkuimanager.c (update_node):
+ * gtk/gtkaction.c (connect_proxy): Set "no_show_all" on constructed
+ widgets whose visibility is externally controlled.
+
+ * gtk/gtkwidget.[hc] (gtk_widget_[gs]et_no_show_all): Add a boolean
+ "no_show_all" property with setter and getter. When TRUE, it keeps
+ gtk_widget_{hide,show}_all() from modifying the visibility of the
+ widget and its children.
+
Sun Sep 21 23:13:37 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktextview.[ch]: Add new "tab moves focus" property (#122709)
+2003-09-21 Matthias Clasen <maclas@gmx.de>
+
+ Changes to make cross-process merging feasible:
+
+ * gtk/gtkuimanager.[hc]: Add a readonly "ui" property which holds the
+ merged UI definition. Remove the "changed" signal, since its role
+ is now filled by "notify::ui". Instead add a "actions-changed" signal
+ which gets emitted when the set of actions changes.
+
+ * gtk/gtktoggleactionprivate.h:
+ * gtk/gtktoggleaction.[hc] (gtk_toggle_action_[sg]et_draw_as_radio):
+ Add a "draw_as_radio" property to toggle actions so that they can be
+ used as proxies for radio actions much like the "draw_as_radio"
+ property on check menu items enables them to operate as proxies for
+ radio actions.
+
+ Prevent the "show_all" trap for action-based menus (see
+ http://mail.gnome.org/archives/gtk-devel-list/2003-September/
+ msg00260.html):
+
+ * gtk/gtkmenu.c (gtk_menu_{hide,show}_all): Remove g_return_if_fail()
+ calls from static functions.
+
+ * gtk/gtkuimanager.c (update_node):
+ * gtk/gtkaction.c (connect_proxy): Set "no_show_all" on constructed
+ widgets whose visibility is externally controlled.
+
+ * gtk/gtkwidget.[hc] (gtk_widget_[gs]et_no_show_all): Add a boolean
+ "no_show_all" property with setter and getter. When TRUE, it keeps
+ gtk_widget_{hide,show}_all() from modifying the visibility of the
+ widget and its children.
+
Sun Sep 21 23:13:37 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktextview.[ch]: Add new "tab moves focus" property (#122709)
+2003-09-21 Matthias Clasen <maclas@gmx.de>
+
+ Changes to make cross-process merging feasible:
+
+ * gtk/gtkuimanager.[hc]: Add a readonly "ui" property which holds the
+ merged UI definition. Remove the "changed" signal, since its role
+ is now filled by "notify::ui". Instead add a "actions-changed" signal
+ which gets emitted when the set of actions changes.
+
+ * gtk/gtktoggleactionprivate.h:
+ * gtk/gtktoggleaction.[hc] (gtk_toggle_action_[sg]et_draw_as_radio):
+ Add a "draw_as_radio" property to toggle actions so that they can be
+ used as proxies for radio actions much like the "draw_as_radio"
+ property on check menu items enables them to operate as proxies for
+ radio actions.
+
+ Prevent the "show_all" trap for action-based menus (see
+ http://mail.gnome.org/archives/gtk-devel-list/2003-September/
+ msg00260.html):
+
+ * gtk/gtkmenu.c (gtk_menu_{hide,show}_all): Remove g_return_if_fail()
+ calls from static functions.
+
+ * gtk/gtkuimanager.c (update_node):
+ * gtk/gtkaction.c (connect_proxy): Set "no_show_all" on constructed
+ widgets whose visibility is externally controlled.
+
+ * gtk/gtkwidget.[hc] (gtk_widget_[gs]et_no_show_all): Add a boolean
+ "no_show_all" property with setter and getter. When TRUE, it keeps
+ gtk_widget_{hide,show}_all() from modifying the visibility of the
+ widget and its children.
+
Sun Sep 21 23:13:37 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktextview.[ch]: Add new "tab moves focus" property (#122709)
+2003-09-21 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtk-sections.txt: Add gtk_widget_[gs]et_no_show_all.
+ Add gtk_toggle_action_[gs]et_draw_as_radio.
+
2003-09-18 Matthias Clasen <maclas@gmx.de>
* gtk/gtk-sections.txt:
gtk_toggle_action_toggled
gtk_toggle_action_set_active
gtk_toggle_action_get_active
+gtk_toggle_action_set_draw_as_radio
+gtk_toggle_action_get_draw_as_radio
+
<SUBSECTION Standard>
GTK_TYPE_TOGGLE_ACTION
GTK_TOGGLE_ACTION
gtk_widget_set_size_request
gtk_widget_set_visual
gtk_widget_thaw_child_notify
+gtk_widget_set_no_show_all
+gtk_widget_get_no_show_all
<SUBSECTION>
gtk_requisition_copy
gtk_requisition_free
gtk_widget_show (proxy);
else
gtk_widget_hide (proxy);
+ gtk_widget_set_no_show_all (proxy, TRUE);
if (GTK_IS_MENU_ITEM (proxy))
{
static void
gtk_menu_show_all (GtkWidget *widget)
{
- g_return_if_fail (GTK_IS_MENU (widget));
-
/* Show children, but not self. */
gtk_container_foreach (GTK_CONTAINER (widget), (GtkCallback) gtk_widget_show_all, NULL);
}
static void
gtk_menu_hide_all (GtkWidget *widget)
{
- g_return_if_fail (GTK_IS_MENU (widget));
-
/* Hide children, but not self. */
gtk_container_foreach (GTK_CONTAINER (widget), (GtkCallback) gtk_widget_hide_all, NULL);
}
#include <config.h>
+#include "gtkintl.h"
#include "gtktoggleaction.h"
#include "gtktoggleactionprivate.h"
#include "gtktoggletoolbutton.h"
LAST_SIGNAL
};
+enum {
+ PROP_0,
+ PROP_DRAW_AS_RADIO
+};
+
static void gtk_toggle_action_init (GtkToggleAction *action);
static void gtk_toggle_action_class_init (GtkToggleActionClass *class);
return type;
}
-static void gtk_toggle_action_activate (GtkAction *action);
+static void gtk_toggle_action_activate (GtkAction *action);
static void gtk_toggle_action_real_toggled (GtkToggleAction *action);
-static void connect_proxy (GtkAction *action,
- GtkWidget *proxy);
-static void disconnect_proxy (GtkAction *action,
- GtkWidget *proxy);
+static void connect_proxy (GtkAction *action,
+ GtkWidget *proxy);
+static void disconnect_proxy (GtkAction *action,
+ GtkWidget *proxy);
+static void set_property (GObject *object,
+ guint prop_id,
+ const GValue *value,
+ GParamSpec *pspec);
+static void get_property (GObject *object,
+ guint prop_id,
+ GValue *value,
+ GParamSpec *pspec);
+static GtkWidget *create_menu_item (GtkAction *action);
+
static GObjectClass *parent_class = NULL;
static guint action_signals[LAST_SIGNAL] = { 0 };
gobject_class = G_OBJECT_CLASS (klass);
action_class = GTK_ACTION_CLASS (klass);
+ gobject_class->set_property = set_property;
+ gobject_class->get_property = get_property;
+
action_class->activate = gtk_toggle_action_activate;
action_class->connect_proxy = connect_proxy;
action_class->disconnect_proxy = disconnect_proxy;
action_class->menu_item_type = GTK_TYPE_CHECK_MENU_ITEM;
action_class->toolbar_item_type = GTK_TYPE_TOGGLE_TOOL_BUTTON;
+ action_class->create_menu_item = create_menu_item;
+
klass->toggled = gtk_toggle_action_real_toggled;
+ g_object_class_install_property (gobject_class,
+ PROP_DRAW_AS_RADIO,
+ g_param_spec_boolean ("draw_as_radio",
+ _("Create the same proxies as a radio action"),
+ _("Whether the proxies for this action look like radio action proxies"),
+ FALSE,
+ G_PARAM_READWRITE));
+
action_signals[TOGGLED] =
g_signal_new ("toggled",
G_OBJECT_CLASS_TYPE (klass),
{
action->private_data = GTK_TOGGLE_ACTION_GET_PRIVATE (action);
action->private_data->active = FALSE;
+ action->private_data->draw_as_radio = FALSE;
+}
+
+static void
+get_property (GObject *object,
+ guint prop_id,
+ GValue *value,
+ GParamSpec *pspec)
+{
+ GtkToggleAction *action = GTK_TOGGLE_ACTION (object);
+
+ switch (prop_id)
+ {
+ case PROP_DRAW_AS_RADIO:
+ g_value_set_boolean (value, gtk_toggle_action_get_draw_as_radio (action));
+ break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+ break;
+ }
+}
+
+
+static void
+set_property (GObject *object,
+ guint prop_id,
+ const GValue *value,
+ GParamSpec *pspec)
+{
+ GtkToggleAction *action = GTK_TOGGLE_ACTION (object);
+
+ switch (prop_id)
+ {
+ case PROP_DRAW_AS_RADIO:
+ gtk_toggle_action_set_draw_as_radio (action, g_value_get_boolean (value));
+ break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+ break;
+ }
}
static void
return action->private_data->active;
}
+
+
+/**
+ * gtk_toggle_action_set_draw_as_radio:
+ * @action: the action object
+ * @draw_as_radio: whether the action should have proxies like a radio
+ * action
+ *
+ * Sets whether the action should have proxies like a radio action.
+ *
+ * Since: 2.4
+ */
+void
+gtk_toggle_action_set_draw_as_radio (GtkToggleAction *action,
+ gboolean draw_as_radio)
+{
+ g_return_if_fail (GTK_IS_TOGGLE_ACTION (action));
+
+ draw_as_radio = draw_as_radio != FALSE;
+
+ if (action->private_data->draw_as_radio != draw_as_radio)
+ {
+ action->private_data->draw_as_radio = draw_as_radio;
+
+ g_object_notify (G_OBJECT (action), "draw_as_radio");
+ }
+}
+
+/**
+ * gtk_toggle_action_get_draw_as_radio:
+ * @action: the action object
+ *
+ * Returns: whether the action should have proxies like a radio action.
+ *
+ * Since: 2.4
+ */
+gboolean
+gtk_toggle_action_get_draw_as_radio (GtkToggleAction *action)
+{
+ g_return_val_if_fail (GTK_IS_TOGGLE_ACTION (action), FALSE);
+
+ return action->private_data->draw_as_radio;
+}
+
+static GtkWidget *
+create_menu_item (GtkAction *action)
+{
+ GtkToggleAction *toggle_action = GTK_TOGGLE_ACTION (action);
+
+ return g_object_new (GTK_TYPE_CHECK_MENU_ITEM,
+ "draw_as_radio", toggle_action->private_data->draw_as_radio,
+ NULL);
+}
void (*_gtk_reserved4) (void);
};
-GType gtk_toggle_action_get_type (void);
-
-void gtk_toggle_action_toggled (GtkToggleAction *action);
-void gtk_toggle_action_set_active (GtkToggleAction *action,
- gboolean is_active);
-gboolean gtk_toggle_action_get_active (GtkToggleAction *action);
+GType gtk_toggle_action_get_type (void);
+void gtk_toggle_action_toggled (GtkToggleAction *action);
+void gtk_toggle_action_set_active (GtkToggleAction *action,
+ gboolean is_active);
+gboolean gtk_toggle_action_get_active (GtkToggleAction *action);
+void gtk_toggle_action_set_draw_as_radio (GtkToggleAction *action,
+ gboolean draw_as_radio);
+gboolean gtk_toggle_action_get_draw_as_radio (GtkToggleAction *action);
#endif /* __GTK_TOGGLE_ACTION_H__ */
struct _GtkToggleActionPrivate
{
- guint active : 1;
+ guint active : 1;
+ guint draw_as_radio : 1;
};
#endif /* __GTK_TOGGLE_ACTION_PRIVATE_H__ */
enum
{
ADD_WIDGET,
- CHANGED,
+ ACTIONS_CHANGED,
LAST_SIGNAL
};
enum
{
PROP_0,
- PROP_ADD_TEAROFFS
+ PROP_ADD_TEAROFFS,
+ PROP_UI
};
static guint merge_signals[LAST_SIGNAL] = { 0 };
_("Add tearoffs to menus"),
_("Whether tearoff menu items should be added to menus"),
FALSE,
- G_PARAM_READABLE | G_PARAM_WRITABLE));
-
+ G_PARAM_READWRITE));
+
+ g_object_class_install_property (gobject_class,
+ PROP_UI,
+ g_param_spec_string ("ui",
+ _("Merged UI definition"),
+ _("An XML string describing the merged UI"),
+ NULL,
+ G_PARAM_READABLE));
+
+
/**
* GtkUIManager::add-widget:
* @merge: a #GtkUIManager
GTK_TYPE_WIDGET);
/**
- * GtkUIManager::changed:
+ * GtkUIManager::actions-changed:
* @merge: a #GtkUIManager
*
- * The "changed" signal is emitted whenever the merged UI changes.
+ * The "actions-changed" signal is emitted whenever the set of actions
+ * changes.
*
* Since: 2.4
*/
- merge_signals[CHANGED] =
- g_signal_new ("changed",
+ merge_signals[ACTIONS_CHANGED] =
+ g_signal_new ("actions_changed",
G_OBJECT_CLASS_TYPE (klass),
G_SIGNAL_RUN_FIRST | G_SIGNAL_NO_RECURSE,
- G_STRUCT_OFFSET (GtkUIManagerClass, changed), NULL, NULL,
+ G_STRUCT_OFFSET (GtkUIManagerClass, actions_changed),
+ NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
case PROP_ADD_TEAROFFS:
g_value_set_boolean (value, self->private_data->add_tearoffs);
break;
+ case PROP_UI:
+ g_value_set_string (value, gtk_ui_manager_get_ui (self));
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
/* dirty all nodes, as action bindings may change */
dirty_all_nodes (self);
+
+ g_signal_emit (self, merge_signals[ACTIONS_CHANGED], 0);
}
/**
/* dirty all nodes, as action bindings may change */
dirty_all_nodes (self);
+
+ g_signal_emit (self, merge_signals[ACTIONS_CHANGED], 0);
}
/**
queue_update (self);
- g_signal_emit (self, merge_signals[CHANGED], 0);
+ g_object_notify (G_OBJECT (self), "ui");
return ctx.merge_id;
queue_update (self);
- g_signal_emit (self, merge_signals[CHANGED], 0);
+ g_object_notify (G_OBJECT (self), "ui");
}
static gboolean
queue_update (self);
- g_signal_emit (self, merge_signals[CHANGED], 0);
+ g_object_notify (G_OBJECT (self), "ui");
}
/* -------------------- Updates -------------------- */
static GtkAction *
get_action_by_name (GtkUIManager *merge,
- const char *action_name)
+ const gchar *action_name)
{
GList *tmp;
info->proxy = gtk_action_create_menu_item (action);
menu = gtk_menu_new ();
tearoff = gtk_tearoff_menu_item_new ();
+ gtk_widget_set_no_show_all (tearoff, TRUE);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), tearoff);
gtk_menu_item_set_submenu (GTK_MENU_ITEM (info->proxy), menu);
gtk_menu_shell_insert (GTK_MENU_SHELL (menushell), info->proxy, pos);
GtkToolItem *item = gtk_separator_tool_item_new ();
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, pos);
info->proxy = GTK_WIDGET (item);
+ gtk_widget_set_no_show_all (info->proxy, TRUE);
g_object_set_data (G_OBJECT (info->proxy),
"gtk-separator-mode",
GINT_TO_POINTER (SEPARATOR_MODE_SMART));
if (find_menu_position (node, &menushell, &pos))
{
info->proxy = gtk_separator_menu_item_new ();
+ gtk_widget_set_no_show_all (info->proxy, TRUE);
g_object_set_data (G_OBJECT (info->proxy),
"gtk-separator-mode",
GINT_TO_POINTER (SEPARATOR_MODE_SMART));
struct _GtkUIManagerClass {
GObjectClass parent_class;
- void (* add_widget) (GtkUIManager *merge,
- GtkWidget *widget);
- void (* changed) (GtkUIManager *merge);
+ void (* add_widget) (GtkUIManager *merge,
+ GtkWidget *widget);
+ void (* actions_changed) (GtkUIManager *merge);
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
PROP_COMPOSITE_CHILD,
PROP_STYLE,
PROP_EVENTS,
- PROP_EXTENSION_EVENTS
+ PROP_EXTENSION_EVENTS,
+ PROP_NO_SHOW_ALL
};
typedef struct _GtkStateData GtkStateData;
GDK_TYPE_EXTENSION_MODE,
GDK_EXTENSION_EVENTS_NONE,
G_PARAM_READWRITE));
+ g_object_class_install_property (gobject_class,
+ PROP_NO_SHOW_ALL,
+ g_param_spec_boolean ("no_show_all",
+ _("No show all"),
+ _("Whether gtk_widget_show_all() should not affect this widget"),
+ FALSE,
+ G_PARAM_READWRITE));
widget_signals[SHOW] =
g_signal_new ("show",
G_TYPE_FROM_CLASS (gobject_class),
case PROP_EXTENSION_EVENTS:
gtk_widget_set_extension_events (widget, g_value_get_enum (value));
break;
+ case PROP_NO_SHOW_ALL:
+ gtk_widget_set_no_show_all (widget, g_value_get_boolean (value));
+ break;
default:
break;
}
else
g_value_set_enum (value, (GdkExtensionMode) *modep);
break;
+ case PROP_NO_SHOW_ALL:
+ g_value_set_boolean (value, gtk_widget_get_no_show_all (widget));
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
g_return_if_fail (GTK_IS_WIDGET (widget));
+ if ((GTK_WIDGET_FLAGS (widget) & GTK_NO_SHOW_ALL) != 0)
+ return;
+
class = GTK_WIDGET_GET_CLASS (widget);
if (class->show_all)
g_return_if_fail (GTK_IS_WIDGET (widget));
+ if ((GTK_WIDGET_FLAGS (widget) & GTK_NO_SHOW_ALL) != 0)
+ return;
+
class = GTK_WIDGET_GET_CLASS (widget);
if (class->hide_all)
return gtk_clipboard_get_for_display (gtk_widget_get_display (widget),
selection);
}
+
+/**
+ * gtk_widget_get_no_show_all:
+ * @widget: a #GtkWidget
+ *
+ * Returns the current value of the "no_show_all" property, which determines
+ * whether calls to gtk_widget_show_all() and gtk_widget_hide_all()
+ * will affect this widget.
+ *
+ * Return value: the current value of the "no_show_all" property.
+ *
+ * Since: 2.4
+ **/
+gboolean
+gtk_widget_get_no_show_all (GtkWidget *widget)
+{
+ g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE);
+
+ return (GTK_WIDGET_FLAGS (widget) & GTK_NO_SHOW_ALL) != 0;
+}
+
+/**
+ * gtk_widget_set_no_show_all:
+ * @widget: a #GtkWidget
+ * @no_show_all: the new value for the "no_show_all" property
+ *
+ * Sets the "no_show_all" property, which determines whether calls to
+ * gtk_widget_show_all() and gtk_widget_hide_all() will affect this widget.
+ *
+ * This is mostly for use in constructing widget hierarchies with externally
+ * controlled visibility, see #GtkUIManager.
+ *
+ * Since: 2.4
+ **/
+void
+gtk_widget_set_no_show_all (GtkWidget *widget,
+ gboolean no_show_all)
+{
+ g_return_if_fail (GTK_IS_WIDGET (widget));
+
+ no_show_all = (no_show_all != FALSE);
+
+ if (no_show_all == ((GTK_WIDGET_FLAGS (widget) & GTK_NO_SHOW_ALL) != 0))
+ return;
+
+ if (no_show_all)
+ GTK_WIDGET_SET_FLAGS (widget, GTK_NO_SHOW_ALL);
+ else
+ GTK_WIDGET_UNSET_FLAGS (widget, GTK_NO_SHOW_ALL);
+
+ g_object_notify (G_OBJECT (widget), "no_show_all");
+}
*/
GTK_RECEIVES_DEFAULT = 1 << 20,
- GTK_DOUBLE_BUFFERED = 1 << 21
+ GTK_DOUBLE_BUFFERED = 1 << 21,
+ GTK_NO_SHOW_ALL = 1 << 22
} GtkWidgetFlags;
/* Kinds of widget-specific help */
void gtk_widget_hide (GtkWidget *widget);
void gtk_widget_show_all (GtkWidget *widget);
void gtk_widget_hide_all (GtkWidget *widget);
+void gtk_widget_set_no_show_all (GtkWidget *widget,
+ gboolean no_show_all);
+gboolean gtk_widget_get_no_show_all (GtkWidget *widget);
void gtk_widget_map (GtkWidget *widget);
void gtk_widget_unmap (GtkWidget *widget);
void gtk_widget_realize (GtkWidget *widget);