aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/gui_utils.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2013-01-05 15:25:30 +0000
committerBill Meier <wmeier@newsguy.com>2013-01-05 15:25:30 +0000
commit93c28b7da11b7c6d56e221e52abefb54d4b54e91 (patch)
tree18abd2a26b9ed00dbbea3152cd74f9732eb9755d /ui/gtk/gui_utils.c
parent5c57af2df21616133d7a70c9baebcb5bb18e060a (diff)
Rename ws_gtk_grid_attach() to ws_gtk_grid_attach_defaults();
Also: fix a typo in a comment in 'gui_utils.h' svn path=/trunk/; revision=46951
Diffstat (limited to 'ui/gtk/gui_utils.c')
-rw-r--r--ui/gtk/gui_utils.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/gtk/gui_utils.c b/ui/gtk/gui_utils.c
index ecadbc9c58..2c7c72aee2 100644
--- a/ui/gtk/gui_utils.c
+++ b/ui/gtk/gui_utils.c
@@ -2044,8 +2044,9 @@ gtk_separator_new(GtkOrientation orientation)
#else /* GTK3 */
void
-ws_gtk_grid_attach(GtkGrid *grid, GtkWidget *child, gint left, gint top, gint width, gint height)
+ws_gtk_grid_attach_defaults(GtkGrid *grid, GtkWidget *child, gint left, gint top, gint width, gint height)
{
+ /* Use defaults for [x|y]options and [x|y]padding which match those for gtk_table_attach_defaults() */
ws_gtk_grid_attach_extended(grid, child, left, top, width, height, GTK_EXPAND|GTK_FILL, GTK_EXPAND|GTK_FILL, 0, 0);
}
@@ -2095,7 +2096,7 @@ ws_gtk_grid_set_homogeneous(GtkGrid *grid, gboolean homogeneous)
#endif /* !GTK_CHECK_VERSION(3,0,0) */
/*
- * Wrapp gdk_cairo_set_source_color() with the GTK 3 equivalent
+ * Wrap gdk_cairo_set_source_color() with the GTK 3 equivalent
* to be used in GTK2
*/
#if !GTK_CHECK_VERSION(3,0,0)
@@ -2107,6 +2108,6 @@ gdk_cairo_set_source_rgba(cairo_t *cr, const GdkRGBA *rgba)
gdkRGBAcolor_to_GdkColor(&color, rgba);
gdk_cairo_set_source_color(cr, &color);
-
+
}
#endif /* GTK_CHECK_VERSION(3,0,0) */