summaryrefslogtreecommitdiff
path: root/gtk/gtknotebook.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1998-11-28 07:42:37 +0000
committerTim Janik <timj@src.gnome.org>1998-11-28 07:42:37 +0000
commit238ede333fb92750520071b71ebff7130b4c8803 (patch)
treee53ab2172e6542b6c65d90b25e57823475a82202 /gtk/gtknotebook.c
parent67d445eebc8d350f5a5131dc6e3d7b8d8ef9da13 (diff)
downloadgtk+-238ede333fb92750520071b71ebff7130b4c8803.tar.gz
changed scrolled window inheritance, it inherits from GtkBin now.
Sat Nov 28 03:13:42 1998 Tim Janik <timj@gtk.org> * gtk/gtkscrolledwindow.h: * gtk/gtkscrolledwindow.c: changed scrolled window inheritance, it inherits from GtkBin now. * gtk/gtkbin.c (gtk_bin_unmap): removed superfluous check for visibility of child. (gtk_bin_draw): removed superfluous check for GTK_WIDGET_DRAWABLE(). added check so a child gets only drawn if it's visible. * gtk/gtkwidget.h: * gtk/gtkwidget.c: removed gtk_widget_draw_children(). * gtk/gtkstyle.h: * gtk/gtkstyle.c: rmoved gtk_reset_widget_shapes. * gtk/gtkwidget.h: * gtk/gtkwidget.c: removed crufty relict: gtk_widget_is_child(). added internal function gtk_widget_reset_shapes() from gtkstyle.c. * gtk/gtkrc.h: * gtk/gtkrc.c: (gtk_rc_find_pixmap_in_path): removed bogus gscanner argument, changed callers. * gtk/gtkmenufactory.c: GtkMenuFactory is deprecated for a long time, it will issue a warning now. * gtk/gtkcompat.h: new file to #define aliases for historic function names. * changed 8 function names for consistency and provided aliases to keep source compatibility in gtkcompat.h: (gtk_accel_label_get_accel_width): renamed from gtk_accel_label_accelerator_width (gtk_container_set_border_width): renamed from gtk_container_border_width (gtk_notebook_get_current_page): renamed from gtk_notebook_current_page (gtk_packer_configure): renamed from gtk_packer_set_child_packing (gtk_paned_set_gutter_size): renamed from gtk_paned_gutter_size (gtk_paned_set_handle_size): renamed from gtk_paned_handle_size (gtk_scale_get_value_width): renamed from gtk_scale_value_width (gtk_window_set_position): renamed from gtk_window_position * renamed a few recently added funtions for consistency: (gtk_notebook_get_tab_label): renamed from gtk_notebook_query_tab_label. (gtk_notebook_get_menu_label): renamed from gtk_notebook_query_menu_label. (gtk_progress_configure): renamed from gtk_progress_reconfigure.
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r--gtk/gtknotebook.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index dc2099e4e0..31b0675ac9 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -427,7 +427,7 @@ gtk_notebook_get_arg (GtkObject *object,
GTK_VALUE_BOOL (*arg) = notebook->menu != NULL;
break;
case ARG_PAGE:
- GTK_VALUE_INT (*arg) = gtk_notebook_current_page (notebook);
+ GTK_VALUE_INT (*arg) = gtk_notebook_get_current_page (notebook);
break;
case ARG_TAB_POS:
GTK_VALUE_ENUM (*arg) = notebook->tab_pos;
@@ -1427,7 +1427,7 @@ gtk_notebook_get_child_arg (GtkContainer *container,
switch (arg_id)
{
case CHILD_ARG_TAB_LABEL:
- label = gtk_notebook_query_tab_label (notebook, child);
+ label = gtk_notebook_get_tab_label (notebook, child);
if (label && GTK_IS_LABEL (label))
GTK_VALUE_STRING (*arg) = g_strdup (GTK_LABEL (label)->label);
@@ -1435,7 +1435,7 @@ gtk_notebook_get_child_arg (GtkContainer *container,
GTK_VALUE_STRING (*arg) = NULL;
break;
case CHILD_ARG_MENU_LABEL:
- label = gtk_notebook_query_menu_label (notebook, child);
+ label = gtk_notebook_get_menu_label (notebook, child);
if (label && GTK_IS_LABEL (label))
GTK_VALUE_STRING (*arg) = g_strdup (GTK_LABEL (label)->label);
@@ -3333,7 +3333,7 @@ gtk_notebook_menu_item_create (GtkNotebook *notebook,
gtk_widget_show (page->menu_label);
menu_item = gtk_menu_item_new ();
- gtk_widget_freeze_accelerators (menu_item);
+ gtk_widget_lock_accelerators (menu_item);
gtk_container_add (GTK_CONTAINER (menu_item), page->menu_label);
gtk_menu_insert (GTK_MENU (notebook->menu), menu_item,
gtk_notebook_real_page_position (notebook, list));
@@ -3547,14 +3547,14 @@ gtk_notebook_remove_page (GtkNotebook *notebook,
}
/* Public GtkNotebook Page Switch Methods :
- * gtk_notebook_current_page
+ * gtk_notebook_get_current_page
* gtk_notebook_page_num
* gtk_notebook_set_page
* gtk_notebook_next_page
* gtk_notebook_prev_page
*/
gint
-gtk_notebook_current_page (GtkNotebook *notebook)
+gtk_notebook_get_current_page (GtkNotebook *notebook)
{
g_return_val_if_fail (notebook != NULL, -1);
g_return_val_if_fail (GTK_IS_NOTEBOOK (notebook), -1);
@@ -3873,18 +3873,18 @@ gtk_notebook_popup_disable (GtkNotebook *notebook)
/* Public GtkNotebook Page Properties Functions:
*
- * gtk_notebook_query_tab_label
+ * gtk_notebook_get_tab_label
* gtk_notebook_set_tab_label
* gtk_notebook_set_tab_label_text
- * gtk_notebook_query_menu_label
+ * gtk_notebook_get_menu_label
* gtk_notebook_set_menu_label
* gtk_notebook_set_menu_label_text
* gtk_notebook_set_tab_label_packing
* gtk_notebook_query_tab_label_packing
*/
GtkWidget *
-gtk_notebook_query_tab_label (GtkNotebook *notebook,
- GtkWidget *child)
+gtk_notebook_get_tab_label (GtkNotebook *notebook,
+ GtkWidget *child)
{
GList *list;
@@ -3967,9 +3967,9 @@ gtk_notebook_set_tab_label_text (GtkNotebook *notebook,
gtk_notebook_set_tab_label (notebook, child, tab_label);
}
-GtkWidget *
-gtk_notebook_query_menu_label (GtkNotebook *notebook,
- GtkWidget *child)
+GtkWidget*
+gtk_notebook_get_menu_label (GtkNotebook *notebook,
+ GtkWidget *child)
{
GList *list;