summaryrefslogtreecommitdiff
path: root/ui/gtk/gui_utils.h
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.h
parent5c57af2df21616133d7a70c9baebcb5bb18e060a (diff)
downloadwireshark-93c28b7da11b7c6d56e221e52abefb54d4b54e91.tar.gz
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.h')
-rw-r--r--ui/gtk/gui_utils.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/ui/gtk/gui_utils.h b/ui/gtk/gui_utils.h
index 8c14f49dfd..c6bd3ac8cf 100644
--- a/ui/gtk/gui_utils.h
+++ b/ui/gtk/gui_utils.h
@@ -563,8 +563,9 @@ void gdk_cairo_set_source_rgba(cairo_t *cr, const GdkRGBA *rgba);
* (other than ws_gtk_attach_extended() which has no gtk_grid...() equivalent).
*
* ws_gtk_grid_new() ;; gtk_table_new()
- * ws_gtk_grid_attach() ;; gtk_table_attach_defaults()
- * ;; Gtk3: sets GTK_EXPAND/GTK_FILL as default;
+ * ws_gtk_grid_attach_defaults() ;; gtk_table_attach_defaults()
+ * ;; Gtk3: sets GTK_EXPAND/GTK_FILL as default;
+ * ;; That is, the defaults used by gtk_table_attach_defaults()
* ws_gtk_grid_attach_extended() ;; gtk_table_attach()
* ;; Essentially gtk_grid_attach() with eadditional args
* ;; to specify 'options' and 'padding' [as used in gtk_table_attach()];
@@ -580,7 +581,7 @@ void gdk_cairo_set_source_rgba(cairo_t *cr, const GdkRGBA *rgba);
* gtk_table_attach_defaults(GTK_TABLE(foo_tb), child, col, col+1, row, row+1)
*
* should be converted to:
- * ws_gtk_grid_attach(GTK_GRID(foo_grid), child, col, row, 1, 1);
+ * ws_gtk_grid_attach_defaults(GTK_GRID(foo_grid), child, col, row, 1, 1);
*/
#if !GTK_CHECK_VERSION(3,0,0)
@@ -591,7 +592,7 @@ typedef GtkTable GtkGrid;
#define ws_gtk_grid_new() \
gtk_table_new(0, 0, FALSE)
-#define ws_gtk_grid_attach(grid, child, left, top, width, height) \
+#define ws_gtk_grid_attach_defaults(grid, child, left, top, width, height) \
gtk_table_attach_defaults(grid, child, left, left+width, top, top+height)
#define ws_gtk_grid_attach_extended(grid, child, left, top, width, height, xoptions, yoptions, xpadding, ypadding) \
@@ -611,8 +612,8 @@ typedef GtkTable GtkGrid;
#define ws_gtk_grid_new() \
gtk_grid_new()
-extern void ws_gtk_grid_attach(GtkGrid *grid, GtkWidget *child,
- gint left, gint top, gint width, gint height);
+extern void ws_gtk_grid_attach_defaults(GtkGrid *grid, GtkWidget *child,
+ gint left, gint top, gint width, gint height);
extern void ws_gtk_grid_attach_extended(GtkGrid *grid, GtkWidget *child,
gint left, gint top, gint width, gint height,