gtk2/demos/gtk-demo
Benjamin Otte d9c9259861 Move GtkSizeRequest into GtkWidget
It doesn't make sense to keep them separate as GtkSizeRequest requires a
GtkWidget and GtkWidget implements GtkSizeRequest, so you can never have
one without the other.
It also makes the code a lot easier because no casts are required when
calling functions.

Also, the names would translate to gtk_widget_get_width() and people
agreed that this would be a too generic name, so a "preferred" was added
to the names.

So this patch moves the functions:
gtk_size_request_get_request_mode() => gtk_widget_get_request_mode()
gtk_size_request_get_width() => gtk_widget_get_preferred_width()
gtk_size_request_get_height() => gtk_widget_get_preferred_height()
gtk_size_request_get_size() => gtk_widget_get_preferred_size()
gtk_size_request_get_width_for_height() =>
  gtk_widget_get_preferred_width_for_height()
gtk_size_request_get_height_for_width() =>
  gtk_widget_get_preferred_height_for_width()
... and moves the corresponding vfuncs to the GtkWidgetClass.

The patch also renames the implementations of the vfuncs in widgets to
include the word "preferrred".
2010-09-26 15:11:45 +02:00
..
alphatest.png
apple-red.png
appwindow.c Remove url hooks from GtkAboutDialog and GtkLinkButton 2010-09-22 00:36:13 -04:00
assistant.c Bug 596428 - GtkAssistant: Support ending with a progress page 2010-06-03 17:03:14 -04:00
background.jpg
builder.c Deprecate widget flag: GTK_WIDGET_VISIBLE 2010-03-01 07:52:07 +01:00
button_box.c Deprecate widget flag: GTK_WIDGET_VISIBLE 2010-03-01 07:52:07 +01:00
changedisplay.c gtk-demo: Drop use of GTK_DIALOG_NO_SEPARATOR 2010-09-02 16:48:45 -04:00
clipboard.c Deprecate widget flag: GTK_WIDGET_VISIBLE 2010-03-01 07:52:07 +01:00
colorsel.c gtk-demo: Use draw signal in color selection demo 2010-09-26 15:11:41 +02:00
combobox.c Change GtkEditable typedef from GtkEditableClass to GtkEditabeInterface 2010-09-17 19:57:09 +02:00
demo-common.h Version 1.3.11 Require GLib-1.3.11, Pango-0.22, ATK-0.7. Restore to 2001-11-23 21:46:44 +00:00
demo.ui Add translatable/context and comment attributes on <col> tags under a 2008-03-02 01:14:48 +00:00
dialog.c Use accessor functions to access GtkDialog 2010-07-13 19:40:47 +02:00
drawingarea.c gtk-demo: Connet to draw signal in drawingarea example 2010-09-26 15:11:40 +02:00
editable_cells.c Deprecate widget flag: GTK_WIDGET_VISIBLE 2010-03-01 07:52:07 +01:00
entry_buffer.c Use accessor functions to access GtkDialog 2010-07-13 19:40:47 +02:00
entry_completion.c Use accessor functions to access GtkDialog 2010-07-13 19:40:47 +02:00
expander.c Use accessor functions to access GtkDialog 2010-07-13 19:40:47 +02:00
floppybuddy.gif
geninclude.pl.in Accept dashes in demo titles. 2005-07-12 15:28:45 +00:00
gnome-applets.png
gnome-calendar.png
gnome-foot.png
gnome-fs-directory.png Add a simple file browser based on the icon view. 2004-07-04 20:35:35 +00:00
gnome-fs-regular.png Add a simple file browser based on the icon view. 2004-07-04 20:35:35 +00:00
gnome-gimp.png
gnome-gmush.png
gnome-gsame.png
gnu-keys.png
gtk-logo-rgb.gif Handle case where we need to parse the xsetting as if it were an RC file 2001-06-04 23:15:51 +00:00
hypertext.c GDK: Prefix key names with KEY_ 2010-09-08 18:51:44 -04:00
iconview_edit.c Rename GtkIconView::orientation property 2010-09-01 23:03:48 -04:00
iconview.c Deprecate widget flag: GTK_WIDGET_VISIBLE 2010-03-01 07:52:07 +01:00
images.c Support 'symbolic' themed icons 2010-04-28 12:02:05 +01:00
infobar.c Deprecate widget flag: GTK_WIDGET_VISIBLE 2010-03-01 07:52:07 +01:00
links.c Deprecate widget flag: GTK_WIDGET_VISIBLE 2010-03-01 07:52:07 +01:00
list_store.c Support 'symbolic' themed icons 2010-04-28 12:02:05 +01:00
main.c Change GtkEditable typedef from GtkEditableClass to GtkEditabeInterface 2010-09-17 19:57:09 +02:00
Makefile.am Make GTK+ use an external gdk-pixbuf 2010-06-26 01:09:05 -04:00
makefile.msc.in updated 2004-11-21 21:01:28 +00:00
menus.c Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_CAN_DEFAULT) 2010-03-02 07:58:05 +01:00
offscreen_window2.c Move GtkSizeRequest into GtkWidget 2010-09-26 15:11:45 +02:00
offscreen_window.c Move GtkSizeRequest into GtkWidget 2010-09-26 15:11:45 +02:00
panes.c demos/gtk-demo/panes.c: Use accessor functions to access GtkWidget 2010-08-22 18:28:33 +02:00
pickers.c Deprecate widget flag: GTK_WIDGET_VISIBLE 2010-03-01 07:52:07 +01:00
pixbufs.c gtk-demo: Connect to draw signal in pixbufs example 2010-09-26 15:11:40 +02:00
printing.c Fix compilation warning: Use const gchar* variable 2009-11-09 09:36:36 +01:00
rotated_text.c gtk-demo: Connect to draw signal in rotated-text 2010-09-26 15:11:40 +02:00
search_entry.c Use accessor functions to access GtkDialog 2010-07-13 19:40:47 +02:00
sizegroup.c Use accessor functions to access GtkDialog 2010-07-13 19:40:47 +02:00
spinner.c Use accessor functions to access GtkDialog 2010-07-13 19:40:47 +02:00
stock_browser.c Use G_DEFINE_BOXED_TYPE 2010-08-18 15:34:47 +02:00
textscroll.c Deprecate widget flag: GTK_WIDGET_VISIBLE 2010-03-01 07:52:07 +01:00
textview.c gtk-demo: Adapt textview example for stipple removal 2010-08-10 21:02:28 +02:00
toolpalette.c demos/gtk-demo/toolpalette.c: Use accessor functions to access GtkWidget 2010-08-22 18:28:48 +02:00
tree_store.c Deprecate widget flag: GTK_WIDGET_VISIBLE 2010-03-01 07:52:07 +01:00
ui_manager.c Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_CAN_DEFAULT) 2010-03-02 07:58:05 +01:00