Add gtk_window_get_default()

* gtk/gtkwindow.[ch]: Add gtk_window_get_default().
* gtk/gtk.symbols: same here.

svn path=/trunk/; revision=20536
This commit is contained in:
Tim Janik 2008-06-20 11:02:08 +00:00
parent 5f1120a0b0
commit 26153af8af
3 changed files with 21 additions and 0 deletions

View File

@ -4772,6 +4772,7 @@ gtk_window_fullscreen
gtk_window_get_accept_focus
gtk_window_get_decorated
gtk_window_get_deletable
gtk_window_get_default
gtk_window_get_default_icon_list
gtk_window_get_default_size
gtk_window_get_destroy_with_parent

View File

@ -1513,6 +1513,25 @@ gtk_window_set_default (GtkWindow *window,
}
}
/**
* gtk_window_get_default:
* @window: a #GtkWindow
*
* Returns the default widget for @window. See gtk_window_set_default()
* for more details.
*
* Returns: the default widget, or %NULL if there is none.
*
* Since: GSEAL-branch
**/
GtkWidget *
gtk_window_get_default (GtkWindow *window)
{
g_return_val_if_fail (GTK_IS_WINDOW (window), NULL);
return window->default_widget;
}
void
gtk_window_set_policy (GtkWindow *window,
gboolean allow_shrink,

View File

@ -202,6 +202,7 @@ void gtk_window_set_focus (GtkWindow *window,
GtkWidget *gtk_window_get_focus (GtkWindow *window);
void gtk_window_set_default (GtkWindow *window,
GtkWidget *default_widget);
GtkWidget *gtk_window_get_default (GtkWindow *window);
gboolean gtk_window_activate_default (GtkWindow *window);
void gtk_window_set_transient_for (GtkWindow *window,