gtk+ r19361 - in trunk: . gtk



Author: hasselmm
Date: Sun Jan 13 23:41:46 2008
New Revision: 19361
URL: http://svn.gnome.org/viewvc/gtk+?rev=19361&view=rev

Log:
Make _gtk_tool_item_toolbar_reconfigured public to allow GtkToolShell
implementations to notify its children, when some aspect of their
configuration changed (#509042).

* gtk/gtk.symbols: Add gtk_tool_item_toolbar_reconfigured.
* gtk/gtktoolbar.c, gtk/gtktoolitem.c, gtk/gtktoolitem.h:
Rename _gtk_tool_item_toolbar_reconfigured.


Modified:
   trunk/ChangeLog
   trunk/gtk/gtk.symbols
   trunk/gtk/gtktoolbar.c
   trunk/gtk/gtktoolitem.c
   trunk/gtk/gtktoolitem.h

Modified: trunk/gtk/gtk.symbols
==============================================================================
--- trunk/gtk/gtk.symbols	(original)
+++ trunk/gtk/gtk.symbols	Sun Jan 13 23:41:46 2008
@@ -4114,6 +4114,7 @@
 gtk_tool_item_set_use_drag_window
 gtk_tool_item_set_visible_horizontal
 gtk_tool_item_set_visible_vertical
+gtk_tool_item_toolbar_reconfigured
 #endif
 #endif
 

Modified: trunk/gtk/gtktoolbar.c
==============================================================================
--- trunk/gtk/gtktoolbar.c	(original)
+++ trunk/gtk/gtktoolbar.c	Sun Jan 13 23:41:46 2008
@@ -4594,7 +4594,7 @@
   switch (content->type)
     {
     case TOOL_ITEM:
-      _gtk_tool_item_toolbar_reconfigured (content->u.tool_item.item);
+      gtk_tool_item_toolbar_reconfigured (content->u.tool_item.item);
       break;
       
     case COMPATIBILITY:

Modified: trunk/gtk/gtktoolitem.c
==============================================================================
--- trunk/gtk/gtktoolitem.c	(original)
+++ trunk/gtk/gtktoolitem.c	Sun Jan 13 23:41:46 2008
@@ -294,7 +294,7 @@
 			  GtkWidget   *prev_parent)
 {
   if (GTK_WIDGET (toolitem)->parent != NULL)
-    _gtk_tool_item_toolbar_reconfigured (GTK_TOOL_ITEM (toolitem));
+    gtk_tool_item_toolbar_reconfigured (GTK_TOOL_ITEM (toolitem));
 }
 
 static void
@@ -1167,17 +1167,17 @@
 }
 
 /**
- * _gtk_tool_item_toolbar_reconfigured:
- * @tool_item: a #GtkToolItem: 
- * 
- * Emits the signal #GtkToolItem::toolbar_reconfigured on @tool_item. This
- * internal function is called by #GtkToolbar when some aspect of its
- * configuration changes.
- * 
- * Since: 2.4
+ * gtk_tool_item_toolbar_reconfigured:
+ * @tool_item: a #GtkToolItem
+ *
+ * Emits the signal #GtkToolItem::toolbar_reconfigured on @tool_item.
+ * #GtkToolbar and other #GtkToolShell implementations use this function
+ * to notify children, when some aspect of their configuration changes.
+ *
+ * Since: 2.16
  **/
 void
-_gtk_tool_item_toolbar_reconfigured (GtkToolItem *tool_item)
+gtk_tool_item_toolbar_reconfigured (GtkToolItem *tool_item)
 {
   g_return_if_fail (GTK_IS_TOOL_ITEM (tool_item));
 

Modified: trunk/gtk/gtktoolitem.h
==============================================================================
--- trunk/gtk/gtktoolitem.h	(original)
+++ trunk/gtk/gtktoolitem.h	Sun Jan 13 23:41:46 2008
@@ -122,8 +122,7 @@
 							GtkWidget   *menu_item);
 void		gtk_tool_item_rebuild_menu	       (GtkToolItem *tool_item);
 
-/* internal function */
-void       _gtk_tool_item_toolbar_reconfigured (GtkToolItem *tool_item);
+void            gtk_tool_item_toolbar_reconfigured     (GtkToolItem *tool_item);
 
 G_END_DECLS
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]