1 /* GTK - The GIMP Toolkit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3 * GtkStatusbar Copyright (C) 1998 Shawn T. Amundson
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
22 * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
23 * file for a list of people on the GTK+ Team. See the ChangeLog
24 * files for a list of changes. These files are distributed with
25 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
31 #include "gtkmarshalers.h"
32 #include "gtkstatusbar.h"
33 #include "gtkwindow.h"
34 #include "gtkprivate.h"
38 typedef struct _GtkStatusbarMsg GtkStatusbarMsg;
40 struct _GtkStatusbarMsg
60 static void gtk_statusbar_destroy (GtkObject *object);
61 static void gtk_statusbar_update (GtkStatusbar *statusbar,
64 static void gtk_statusbar_size_allocate (GtkWidget *widget,
65 GtkAllocation *allocation);
66 static void gtk_statusbar_realize (GtkWidget *widget);
67 static void gtk_statusbar_unrealize (GtkWidget *widget);
68 static void gtk_statusbar_map (GtkWidget *widget);
69 static void gtk_statusbar_unmap (GtkWidget *widget);
70 static gboolean gtk_statusbar_button_press (GtkWidget *widget,
71 GdkEventButton *event);
72 static gboolean gtk_statusbar_expose_event (GtkWidget *widget,
73 GdkEventExpose *event);
74 static void gtk_statusbar_size_request (GtkWidget *widget,
75 GtkRequisition *requisition);
76 static void gtk_statusbar_size_allocate (GtkWidget *widget,
77 GtkAllocation *allocation);
78 static void gtk_statusbar_direction_changed (GtkWidget *widget,
79 GtkTextDirection prev_dir);
80 static void gtk_statusbar_state_changed (GtkWidget *widget,
81 GtkStateType previous_state);
82 static void gtk_statusbar_create_window (GtkStatusbar *statusbar);
83 static void gtk_statusbar_destroy_window (GtkStatusbar *statusbar);
84 static void gtk_statusbar_get_property (GObject *object,
88 static void gtk_statusbar_set_property (GObject *object,
92 static void label_selectable_changed (GtkWidget *label,
97 static guint statusbar_signals[SIGNAL_LAST] = { 0 };
99 G_DEFINE_TYPE (GtkStatusbar, gtk_statusbar, GTK_TYPE_HBOX)
102 gtk_statusbar_class_init (GtkStatusbarClass *class)
104 GObjectClass *gobject_class;
105 GtkObjectClass *object_class;
106 GtkWidgetClass *widget_class;
108 gobject_class = (GObjectClass *) class;
109 object_class = (GtkObjectClass *) class;
110 widget_class = (GtkWidgetClass *) class;
112 gobject_class->set_property = gtk_statusbar_set_property;
113 gobject_class->get_property = gtk_statusbar_get_property;
115 object_class->destroy = gtk_statusbar_destroy;
117 widget_class->realize = gtk_statusbar_realize;
118 widget_class->unrealize = gtk_statusbar_unrealize;
119 widget_class->map = gtk_statusbar_map;
120 widget_class->unmap = gtk_statusbar_unmap;
121 widget_class->button_press_event = gtk_statusbar_button_press;
122 widget_class->expose_event = gtk_statusbar_expose_event;
123 widget_class->size_request = gtk_statusbar_size_request;
124 widget_class->size_allocate = gtk_statusbar_size_allocate;
125 widget_class->direction_changed = gtk_statusbar_direction_changed;
126 widget_class->state_changed = gtk_statusbar_state_changed;
128 class->text_pushed = gtk_statusbar_update;
129 class->text_popped = gtk_statusbar_update;
132 * GtkStatusbar:has-resize-grip:
134 * Whether the statusbar has a grip for resizing the toplevel window.
138 g_object_class_install_property (gobject_class,
139 PROP_HAS_RESIZE_GRIP,
140 g_param_spec_boolean ("has-resize-grip",
141 P_("Has Resize Grip"),
142 P_("Whether the statusbar has a grip for resizing the toplevel"),
144 GTK_PARAM_READWRITE));
147 * GtkStatusbar::text-pushed:
148 * @statusbar: the object which received the signal.
149 * @context_id: the context id of the relevant message/statusbar.
150 * @text: the message that was pushed.
152 * Is emitted whenever a new message gets pushed onto a statusbar's stack.
154 statusbar_signals[SIGNAL_TEXT_PUSHED] =
155 g_signal_new (I_("text_pushed"),
156 G_OBJECT_CLASS_TYPE (class),
158 G_STRUCT_OFFSET (GtkStatusbarClass, text_pushed),
160 _gtk_marshal_VOID__UINT_STRING,
166 * GtkStatusbar::text-popped:
167 * @statusbar: the object which received the signal.
168 * @context_id: the context id of the relevant message/statusbar.
169 * @text: the message that was just popped.
171 * Is emitted whenever a new message is popped off a statusbar's stack.
173 statusbar_signals[SIGNAL_TEXT_POPPED] =
174 g_signal_new (I_("text_popped"),
175 G_OBJECT_CLASS_TYPE (class),
177 G_STRUCT_OFFSET (GtkStatusbarClass, text_popped),
179 _gtk_marshal_VOID__UINT_STRING,
184 gtk_widget_class_install_style_property (widget_class,
185 g_param_spec_enum ("shadow-type",
187 P_("Style of bevel around the statusbar text"),
188 GTK_TYPE_SHADOW_TYPE,
190 GTK_PARAM_READABLE));
194 gtk_statusbar_init (GtkStatusbar *statusbar)
197 GtkShadowType shadow_type;
199 box = GTK_BOX (statusbar);
202 box->homogeneous = FALSE;
204 statusbar->has_resize_grip = TRUE;
206 gtk_widget_style_get (GTK_WIDGET (statusbar), "shadow-type", &shadow_type, NULL);
208 statusbar->frame = gtk_frame_new (NULL);
209 gtk_frame_set_shadow_type (GTK_FRAME (statusbar->frame), shadow_type);
210 gtk_box_pack_start (box, statusbar->frame, TRUE, TRUE, 0);
211 gtk_widget_show (statusbar->frame);
213 statusbar->label = gtk_label_new ("");
214 gtk_label_set_single_line_mode (GTK_LABEL (statusbar->label), TRUE);
215 gtk_misc_set_alignment (GTK_MISC (statusbar->label), 0.0, 0.5);
216 g_signal_connect (statusbar->label, "notify::selectable",
217 G_CALLBACK (label_selectable_changed), statusbar);
218 gtk_label_set_ellipsize (GTK_LABEL (statusbar->label), PANGO_ELLIPSIZE_END);
219 gtk_container_add (GTK_CONTAINER (statusbar->frame), statusbar->label);
220 gtk_widget_show (statusbar->label);
222 statusbar->seq_context_id = 1;
223 statusbar->seq_message_id = 1;
224 statusbar->messages = NULL;
225 statusbar->keys = NULL;
231 * Creates a new #GtkStatusbar ready for messages.
233 * Returns: the new #GtkStatusbar
236 gtk_statusbar_new (void)
238 return g_object_new (GTK_TYPE_STATUSBAR, NULL);
242 gtk_statusbar_update (GtkStatusbar *statusbar,
246 g_return_if_fail (GTK_IS_STATUSBAR (statusbar));
251 gtk_label_set_text (GTK_LABEL (statusbar->label), text);
255 * gtk_statusbar_get_context_id:
256 * @statusbar: a #GtkStatusbar
257 * @context_description: textual description of what context
258 * the new message is being used in
260 * Returns a new context identifier, given a description
261 * of the actual context. Note that the description is
262 * <emphasis>not</emphasis> shown in the UI.
264 * Returns: an integer id
267 gtk_statusbar_get_context_id (GtkStatusbar *statusbar,
268 const gchar *context_description)
273 g_return_val_if_fail (GTK_IS_STATUSBAR (statusbar), 0);
274 g_return_val_if_fail (context_description != NULL, 0);
276 /* we need to preserve namespaces on object datas */
277 string = g_strconcat ("gtk-status-bar-context:", context_description, NULL);
279 id = g_object_get_data (G_OBJECT (statusbar), string);
282 id = g_new (guint, 1);
283 *id = statusbar->seq_context_id++;
284 g_object_set_data_full (G_OBJECT (statusbar), string, id, g_free);
285 statusbar->keys = g_slist_prepend (statusbar->keys, string);
294 * gtk_statusbar_push:
295 * @statusbar: a #GtkStatusbar
296 * @context_id: the message's context id, as returned by
297 * gtk_statusbar_get_context_id()
298 * @text: the message to add to the statusbar
300 * Pushes a new message onto a statusbar's stack.
302 * Returns: a message id that can be used with
303 * gtk_statusbar_remove().
306 gtk_statusbar_push (GtkStatusbar *statusbar,
310 GtkStatusbarMsg *msg;
312 g_return_val_if_fail (GTK_IS_STATUSBAR (statusbar), 0);
313 g_return_val_if_fail (text != NULL, 0);
315 msg = g_slice_new (GtkStatusbarMsg);
316 msg->text = g_strdup (text);
317 msg->context_id = context_id;
318 msg->message_id = statusbar->seq_message_id++;
320 statusbar->messages = g_slist_prepend (statusbar->messages, msg);
322 g_signal_emit (statusbar,
323 statusbar_signals[SIGNAL_TEXT_PUSHED],
328 return msg->message_id;
333 * @statusbar: a #GtkStatusBar
334 * @context_id: a context identifier
336 * Removes the first message in the #GtkStatusBar's stack
337 * with the given context id.
339 * Note that this may not change the displayed message, if
340 * the message at the top of the stack has a different
344 gtk_statusbar_pop (GtkStatusbar *statusbar,
347 GtkStatusbarMsg *msg;
349 g_return_if_fail (GTK_IS_STATUSBAR (statusbar));
351 if (statusbar->messages)
355 for (list = statusbar->messages; list; list = list->next)
359 if (msg->context_id == context_id)
361 statusbar->messages = g_slist_remove_link (statusbar->messages,
364 g_slice_free (GtkStatusbarMsg, msg);
365 g_slist_free_1 (list);
371 msg = statusbar->messages ? statusbar->messages->data : NULL;
373 g_signal_emit (statusbar,
374 statusbar_signals[SIGNAL_TEXT_POPPED],
376 (guint) (msg ? msg->context_id : 0),
377 msg ? msg->text : NULL);
381 * gtk_statusbar_remove:
382 * @statusbar: a #GtkStatusBar
383 * @context_id: a context identifier
384 * @message_id: a message identifier, as returned by gtk_statusbar_push()
386 * Forces the removal of a message from a statusbar's stack.
387 * The exact @context_id and @message_id must be specified.
390 gtk_statusbar_remove (GtkStatusbar *statusbar,
394 GtkStatusbarMsg *msg;
396 g_return_if_fail (GTK_IS_STATUSBAR (statusbar));
397 g_return_if_fail (message_id > 0);
399 msg = statusbar->messages ? statusbar->messages->data : NULL;
404 /* care about signal emission if the topmost item is removed */
405 if (msg->context_id == context_id &&
406 msg->message_id == message_id)
408 gtk_statusbar_pop (statusbar, context_id);
412 for (list = statusbar->messages; list; list = list->next)
416 if (msg->context_id == context_id &&
417 msg->message_id == message_id)
419 statusbar->messages = g_slist_remove_link (statusbar->messages, list);
421 g_slice_free (GtkStatusbarMsg, msg);
422 g_slist_free_1 (list);
431 * gtk_statusbar_set_has_resize_grip:
432 * @statusbar: a #GtkStatusBar
433 * @setting: %TRUE to have a resize grip
435 * Sets whether the statusbar has a resize grip.
439 gtk_statusbar_set_has_resize_grip (GtkStatusbar *statusbar,
442 g_return_if_fail (GTK_IS_STATUSBAR (statusbar));
444 setting = setting != FALSE;
446 if (setting != statusbar->has_resize_grip)
448 statusbar->has_resize_grip = setting;
449 gtk_widget_queue_resize (statusbar->label);
450 gtk_widget_queue_draw (GTK_WIDGET (statusbar));
452 if (GTK_WIDGET_REALIZED (statusbar))
454 if (statusbar->has_resize_grip && statusbar->grip_window == NULL)
456 gtk_statusbar_create_window (statusbar);
457 if (GTK_WIDGET_MAPPED (statusbar))
458 gdk_window_show (statusbar->grip_window);
460 else if (!statusbar->has_resize_grip && statusbar->grip_window != NULL)
461 gtk_statusbar_destroy_window (statusbar);
464 g_object_notify (G_OBJECT (statusbar), "has-resize-grip");
469 * gtk_statusbar_get_has_resize_grip:
470 * @statusbar: a #GtkStatusBar
472 * Returns whether the statusbar has a resize grip.
474 * Returns: %TRUE if the statusbar has a resize grip.
477 gtk_statusbar_get_has_resize_grip (GtkStatusbar *statusbar)
479 g_return_val_if_fail (GTK_IS_STATUSBAR (statusbar), FALSE);
481 return statusbar->has_resize_grip;
485 gtk_statusbar_destroy (GtkObject *object)
487 GtkStatusbar *statusbar;
490 g_return_if_fail (GTK_IS_STATUSBAR (object));
492 statusbar = GTK_STATUSBAR (object);
494 for (list = statusbar->messages; list; list = list->next)
496 GtkStatusbarMsg *msg;
500 g_slice_free (GtkStatusbarMsg, msg);
502 g_slist_free (statusbar->messages);
503 statusbar->messages = NULL;
505 for (list = statusbar->keys; list; list = list->next)
507 g_slist_free (statusbar->keys);
508 statusbar->keys = NULL;
510 GTK_OBJECT_CLASS (gtk_statusbar_parent_class)->destroy (object);
514 gtk_statusbar_set_property (GObject *object,
519 GtkStatusbar *statusbar = GTK_STATUSBAR (object);
523 case PROP_HAS_RESIZE_GRIP:
524 gtk_statusbar_set_has_resize_grip (statusbar, g_value_get_boolean (value));
527 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
533 gtk_statusbar_get_property (GObject *object,
538 GtkStatusbar *statusbar = GTK_STATUSBAR (object);
542 case PROP_HAS_RESIZE_GRIP:
543 g_value_set_boolean (value, statusbar->has_resize_grip);
546 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
552 get_grip_edge (GtkStatusbar *statusbar)
554 GtkWidget *widget = GTK_WIDGET (statusbar);
556 if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_LTR)
557 return GDK_WINDOW_EDGE_SOUTH_EAST;
559 return GDK_WINDOW_EDGE_SOUTH_WEST;
563 get_grip_rect (GtkStatusbar *statusbar,
569 widget = GTK_WIDGET (statusbar);
571 /* These are in effect the max/default size of the grip. */
575 if (w > widget->allocation.width)
576 w = widget->allocation.width;
578 if (h > widget->allocation.height - widget->style->ythickness)
579 h = widget->allocation.height - widget->style->ythickness;
583 rect->y = widget->allocation.y + widget->allocation.height - h;
585 if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_LTR)
586 rect->x = widget->allocation.x + widget->allocation.width - w;
588 rect->x = widget->allocation.x + widget->style->xthickness;
592 set_grip_cursor (GtkStatusbar *statusbar)
594 if (statusbar->has_resize_grip)
596 GtkWidget *widget = GTK_WIDGET (statusbar);
597 GdkDisplay *display = gtk_widget_get_display (widget);
598 GdkCursorType cursor_type;
601 if (GTK_WIDGET_IS_SENSITIVE (widget))
603 if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_LTR)
604 cursor_type = GDK_BOTTOM_RIGHT_CORNER;
606 cursor_type = GDK_BOTTOM_LEFT_CORNER;
608 cursor = gdk_cursor_new_for_display (display, cursor_type);
609 gdk_window_set_cursor (statusbar->grip_window, cursor);
610 gdk_cursor_unref (cursor);
613 gdk_window_set_cursor (statusbar->grip_window, NULL);
618 gtk_statusbar_create_window (GtkStatusbar *statusbar)
621 GdkWindowAttr attributes;
622 gint attributes_mask;
625 g_return_if_fail (GTK_WIDGET_REALIZED (statusbar));
626 g_return_if_fail (statusbar->has_resize_grip);
628 widget = GTK_WIDGET (statusbar);
630 get_grip_rect (statusbar, &rect);
632 attributes.x = rect.x;
633 attributes.y = rect.y;
634 attributes.width = rect.width;
635 attributes.height = rect.height;
636 attributes.window_type = GDK_WINDOW_CHILD;
637 attributes.wclass = GDK_INPUT_ONLY;
638 attributes.event_mask = gtk_widget_get_events (widget) |
639 GDK_BUTTON_PRESS_MASK;
641 attributes_mask = GDK_WA_X | GDK_WA_Y;
643 statusbar->grip_window = gdk_window_new (widget->window,
644 &attributes, attributes_mask);
646 gdk_window_set_user_data (statusbar->grip_window, widget);
648 set_grip_cursor (statusbar);
652 gtk_statusbar_direction_changed (GtkWidget *widget,
653 GtkTextDirection prev_dir)
655 GtkStatusbar *statusbar = GTK_STATUSBAR (widget);
657 set_grip_cursor (statusbar);
661 gtk_statusbar_state_changed (GtkWidget *widget,
662 GtkStateType previous_state)
664 GtkStatusbar *statusbar = GTK_STATUSBAR (widget);
666 set_grip_cursor (statusbar);
670 gtk_statusbar_destroy_window (GtkStatusbar *statusbar)
672 gdk_window_set_user_data (statusbar->grip_window, NULL);
673 gdk_window_destroy (statusbar->grip_window);
674 statusbar->grip_window = NULL;
678 gtk_statusbar_realize (GtkWidget *widget)
680 GtkStatusbar *statusbar;
682 statusbar = GTK_STATUSBAR (widget);
684 (* GTK_WIDGET_CLASS (gtk_statusbar_parent_class)->realize) (widget);
686 if (statusbar->has_resize_grip)
687 gtk_statusbar_create_window (statusbar);
691 gtk_statusbar_unrealize (GtkWidget *widget)
693 GtkStatusbar *statusbar;
695 statusbar = GTK_STATUSBAR (widget);
697 if (statusbar->grip_window)
698 gtk_statusbar_destroy_window (statusbar);
700 (* GTK_WIDGET_CLASS (gtk_statusbar_parent_class)->unrealize) (widget);
704 gtk_statusbar_map (GtkWidget *widget)
706 GtkStatusbar *statusbar;
708 statusbar = GTK_STATUSBAR (widget);
710 (* GTK_WIDGET_CLASS (gtk_statusbar_parent_class)->map) (widget);
712 if (statusbar->grip_window)
713 gdk_window_show (statusbar->grip_window);
717 gtk_statusbar_unmap (GtkWidget *widget)
719 GtkStatusbar *statusbar;
721 statusbar = GTK_STATUSBAR (widget);
723 if (statusbar->grip_window)
724 gdk_window_hide (statusbar->grip_window);
726 (* GTK_WIDGET_CLASS (gtk_statusbar_parent_class)->unmap) (widget);
730 gtk_statusbar_button_press (GtkWidget *widget,
731 GdkEventButton *event)
733 GtkStatusbar *statusbar;
737 statusbar = GTK_STATUSBAR (widget);
739 if (!statusbar->has_resize_grip ||
740 event->type != GDK_BUTTON_PRESS ||
741 event->window != statusbar->grip_window)
744 ancestor = gtk_widget_get_toplevel (widget);
746 if (!GTK_IS_WINDOW (ancestor))
749 edge = get_grip_edge (statusbar);
751 if (event->button == 1)
752 gtk_window_begin_resize_drag (GTK_WINDOW (ancestor),
755 event->x_root, event->y_root,
757 else if (event->button == 2)
758 gtk_window_begin_move_drag (GTK_WINDOW (ancestor),
760 event->x_root, event->y_root,
769 gtk_statusbar_expose_event (GtkWidget *widget,
770 GdkEventExpose *event)
772 GtkStatusbar *statusbar;
775 statusbar = GTK_STATUSBAR (widget);
777 GTK_WIDGET_CLASS (gtk_statusbar_parent_class)->expose_event (widget, event);
779 if (statusbar->has_resize_grip)
783 edge = get_grip_edge (statusbar);
785 get_grip_rect (statusbar, &rect);
787 gtk_paint_resize_grip (widget->style,
789 GTK_WIDGET_STATE (widget),
795 /* don't draw grip over the frame, though you
796 * can click on the frame.
798 rect.width - widget->style->xthickness,
799 rect.height - widget->style->ythickness);
806 gtk_statusbar_size_request (GtkWidget *widget,
807 GtkRequisition *requisition)
809 GtkStatusbar *statusbar;
810 GtkShadowType shadow_type;
812 statusbar = GTK_STATUSBAR (widget);
814 gtk_widget_style_get (GTK_WIDGET (statusbar), "shadow-type", &shadow_type, NULL);
815 gtk_frame_set_shadow_type (GTK_FRAME (statusbar->frame), shadow_type);
817 GTK_WIDGET_CLASS (gtk_statusbar_parent_class)->size_request (widget, requisition);
820 /* look for extra children between the frame containing
821 * the label and where we want to draw the resize grip
824 has_extra_children (GtkStatusbar *statusbar)
827 GtkBoxChild *child, *frame;
830 for (l = GTK_BOX (statusbar)->children; l; l = l->next)
834 if (frame->widget == statusbar->frame)
838 for (l = l->next; l; l = l->next)
842 if (!GTK_WIDGET_VISIBLE (child->widget))
845 if (frame->pack == GTK_PACK_START || child->pack == GTK_PACK_END)
853 gtk_statusbar_size_allocate (GtkWidget *widget,
854 GtkAllocation *allocation)
856 GtkStatusbar *statusbar = GTK_STATUSBAR (widget);
857 gboolean extra_children = FALSE;
860 if (statusbar->has_resize_grip)
862 widget->allocation = *allocation;
863 get_grip_rect (statusbar, &rect);
865 extra_children = has_extra_children (statusbar);
867 /* If there are extra children, we don't want them to occupy
868 * the space where we draw the resize grip, so we temporarily
869 * shrink the allocation.
870 * If there are no extra children, we want the frame to get
871 * the full allocation, and we fix up the allocation of the
872 * label afterwards to make room for the grip.
876 allocation->width -= rect.width;
877 if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
878 allocation->x += rect.width;
882 /* chain up normally */
883 GTK_WIDGET_CLASS (gtk_statusbar_parent_class)->size_allocate (widget, allocation);
885 if (statusbar->has_resize_grip)
887 if (statusbar->grip_window)
889 gdk_window_raise (statusbar->grip_window);
890 gdk_window_move_resize (statusbar->grip_window,
892 rect.width, rect.height);
897 allocation->width += rect.width;
898 if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
899 allocation->x -= rect.width;
901 widget->allocation = *allocation;
907 /* Use the frame's child instead of statusbar->label directly, in case
908 * the label has been replaced by a container as the frame's child
909 * (and the label reparented into that container).
911 child = gtk_bin_get_child (GTK_BIN (statusbar->frame));
913 if (child->allocation.width + rect.width > statusbar->frame->allocation.width)
915 /* shrink the label to make room for the grip */
916 *allocation = child->allocation;
917 allocation->width = MAX (1, allocation->width - rect.width);
918 if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
919 allocation->x += child->allocation.width - allocation->width;
921 gtk_widget_size_allocate (child, allocation);
928 label_selectable_changed (GtkWidget *label,
932 GtkStatusbar *statusbar = GTK_STATUSBAR (data);
935 statusbar->has_resize_grip && statusbar->grip_window)
936 gdk_window_raise (statusbar->grip_window);
939 #define __GTK_STATUSBAR_C__
940 #include "gtkaliasdef.c"