add new "is_important" property
Fri Aug 1 15:26:46 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolbar.c, gtk/toolitem.c: add new "is_important" property * gtk/gtkradiotoolbutton.c (gtk_radio_tool_button_new_from_widget): Don't take a stock id * gtk/gtkradiotoolbutton.c (gtk_radio_tool_button_new_with_stock_from_widget): make this function take a stock_id. * gtk/toolbar: documentation
This commit is contained in:
		 Soeren Sandmann
					Soeren Sandmann
				
			
				
					committed by
					
						 Søren Sandmann Pedersen
						Søren Sandmann Pedersen
					
				
			
			
				
	
			
			
			 Søren Sandmann Pedersen
						Søren Sandmann Pedersen
					
				
			
						parent
						
							72f1116387
						
					
				
				
					commit
					6f6d3a2202
				
			| @ -34,8 +34,12 @@ | ||||
| #define SPACE_LINE_START    3 | ||||
| #define SPACE_LINE_END      7 | ||||
|  | ||||
| #define MENU_ID "gtk-separator-tool-item-menu-id" | ||||
|  | ||||
| static void                 gtk_separator_tool_item_class_init (GtkSeparatorToolItemClass *class); | ||||
| static gboolean             gtk_separator_tool_item_create_menu_proxy (GtkToolItem *item); | ||||
| static void		    gtk_separator_tool_item_size_request (GtkWidget      *widget, | ||||
| 								   | ||||
| 								  GtkRequisition *requisition); | ||||
| static gboolean             gtk_separator_tool_item_expose     (GtkWidget                 *widget, | ||||
| 								GdkEventExpose            *event); | ||||
| @ -119,7 +123,8 @@ gtk_separator_tool_item_class_init (GtkSeparatorToolItemClass *class) | ||||
|  | ||||
|   widget_class->size_request = gtk_separator_tool_item_size_request; | ||||
|   widget_class->expose_event = gtk_separator_tool_item_expose; | ||||
|    | ||||
|   toolitem_class->create_menu_proxy = gtk_separator_tool_item_create_menu_proxy; | ||||
|  | ||||
|   container_class->add = gtk_separator_tool_item_add; | ||||
| } | ||||
|  | ||||
| @ -130,6 +135,18 @@ gtk_separator_tool_item_add (GtkContainer *container, | ||||
|   g_warning("attempt to add a child to an GtkSeparatorToolItem"); | ||||
| } | ||||
|  | ||||
| static gboolean | ||||
| gtk_separator_tool_item_create_menu_proxy (GtkToolItem *item) | ||||
| { | ||||
|   GtkWidget *menu_item = NULL; | ||||
|    | ||||
|   menu_item = gtk_separator_menu_item_new(); | ||||
|    | ||||
|   gtk_tool_item_set_proxy_menu_item (item, MENU_ID, menu_item); | ||||
|    | ||||
|   return TRUE; | ||||
| } | ||||
|  | ||||
| static void | ||||
| gtk_separator_tool_item_size_request (GtkWidget      *widget, | ||||
| 				      GtkRequisition *requisition) | ||||
| @ -193,6 +210,15 @@ gtk_separator_tool_item_expose (GtkWidget      *widget, | ||||
|   return TRUE; | ||||
| } | ||||
|  | ||||
| /** | ||||
|  * gtk_separator_tool_item_new: | ||||
|  *  | ||||
|  * Create a new #GtkSeparatorToolItem | ||||
|  *  | ||||
|  * Return value: the new #GtkSeparatorToolItem | ||||
|  *  | ||||
|  * Since: 2.4 | ||||
|  **/ | ||||
| GtkToolItem * | ||||
| gtk_separator_tool_item_new (void) | ||||
| { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user