#60384: patch
- From: Kristian Rietveld <kristian planet nl>
- To: GTK Development list <gtk-devel-list gnome org>
- Subject: #60384: patch
- Date: Wed, 19 Sep 2001 21:48:12 +0200 (CEST)
Hi all,
Here's a patch for bug #60384, which adds 2 missing getters. Hope the
upcoming API freeze allows this (think so, because there isn't any
breakage). ChangeLog:
2001-09-19 Kristian Rietveld <kristian planet nl>
* gtk/gtkmenuitem.[ch]: add gtk_menu_item_get_placement()
(missing getter)
* gtk/gtktooltips.[ch]: add gtk_tooltips_get_delay ()
(missing getter)
Pointed out by Vitaly Tishkov, fixes bug #60384.
Proposed patch appended.
Ok to commit?
regards,
Kris
Index: gtkmenuitem.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkmenuitem.c,v
retrieving revision 1.57
diff -u -r1.57 gtkmenuitem.c
--- gtkmenuitem.c 2001/09/03 01:43:52 1.57
+++ gtkmenuitem.c 2001/09/19 19:42:39
@@ -333,6 +333,14 @@
gtk_menu_detach (GTK_MENU (menu_item->submenu));
}
+GtkSubmenuPlacement
+gtk_menu_item_get_placement (GtkMenuItem *menu_item)
+{
+ g_return_val_if_fail (GTK_IS_MENU_ITEM (menu_item), 0);
+
+ return menu_item->submenu_placement;
+}
+
void
gtk_menu_item_set_placement (GtkMenuItem *menu_item,
GtkSubmenuPlacement placement)
Index: gtkmenuitem.h
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkmenuitem.h,v
retrieving revision 1.19
diff -u -r1.19 gtkmenuitem.h
--- gtkmenuitem.h 2001/08/27 15:17:50 1.19
+++ gtkmenuitem.h 2001/09/19 19:42:39
@@ -94,6 +94,7 @@
GtkWidget *submenu);
GtkWidget* gtk_menu_item_get_submenu (GtkMenuItem *menu_item);
void gtk_menu_item_remove_submenu (GtkMenuItem *menu_item);
+GtkSubmenuPlacement gtk_menu_item_get_placement (GtkMenuItem *menu_item);
void gtk_menu_item_set_placement (GtkMenuItem *menu_item,
GtkSubmenuPlacement placement);
void gtk_menu_item_select (GtkMenuItem *menu_item);
Index: gtktooltips.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtktooltips.c,v
retrieving revision 1.42
diff -u -r1.42 gtktooltips.c
--- gtktooltips.c 2001/08/19 11:48:31 1.42
+++ gtktooltips.c 2001/09/19 19:42:39
@@ -214,6 +214,14 @@
tooltips->enabled = FALSE;
}
+guint
+gtk_tooltips_get_delay (GtkTooltips *tooltips)
+{
+ g_return_val_if_fail (tooltips != NULL, 0);
+
+ return tooltips->delay;
+}
+
void
gtk_tooltips_set_delay (GtkTooltips *tooltips,
guint delay)
Index: gtktooltips.h
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtktooltips.h,v
retrieving revision 1.20
diff -u -r1.20 gtktooltips.h
--- gtktooltips.h 2001/06/29 01:59:02 1.20
+++ gtktooltips.h 2001/09/19 19:42:39
@@ -82,6 +82,7 @@
void gtk_tooltips_enable (GtkTooltips *tooltips);
void gtk_tooltips_disable (GtkTooltips *tooltips);
+guint gtk_tooltips_get_delay (GtkTooltips *tooltips);
void gtk_tooltips_set_delay (GtkTooltips *tooltips,
guint delay);
void gtk_tooltips_set_tip (GtkTooltips *tooltips,
--
Odi et amo. Quare id faciam, fortasse requiris?
Nescio, sed fieri sentio et excrucior.
-Catullus (Carmen 85)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]