--- a/gntbox.c Thu Apr 25 03:42:09 2019 -0400
+++ b/gntbox.c Wed Apr 24 21:02:26 2019 -0400
@@ -34,7 +34,7 @@
@@ -541,7 +541,7 @@
box->vertical = g_value_get_boolean(value);
box->homogeneous = g_value_get_boolean(value);
@@ -559,7 +559,7 @@
g_value_set_boolean(value, box->vertical);
g_value_set_boolean(value, box->homogeneous);
@@ -598,7 +598,7 @@
g_object_class_install_property(obj_class,
g_param_spec_boolean("homogeneous", "Homogeneous",
"Whether the child widgets in the box should have the same size.",
@@ -636,10 +636,11 @@
/******************************************************************************
*****************************************************************************/
-GntWidget *gnt_box_new(gboolean homo, gboolean vert)
+gnt_box_new(gboolean homogeneous, gboolean vert) - GntWidget *widget = g_object_new(GNT_TYPE_BOX, "homogeneous", homo,
- "vertical", vert, NULL);
+ GntWidget *widget = g_object_new(GNT_TYPE_BOX, "homogeneous", + homogeneous, "vertical", vert, NULL); GntBox *box = GNT_BOX(widget);
box->alignment = vert ? GNT_ALIGN_LEFT : GNT_ALIGN_MID;
--- a/gntbox.h Thu Apr 25 03:42:09 2019 -0400
+++ b/gntbox.h Wed Apr 24 21:02:26 2019 -0400
@@ -105,20 +105,21 @@
GType gnt_box_get_type(void);
-#define gnt_vbox_new(homo) gnt_box_new(homo, TRUE)
-#define gnt_hbox_new(homo) gnt_box_new(homo, FALSE)
+#define gnt_vbox_new(homogeneous) gnt_box_new(homogeneous, TRUE) +#define gnt_hbox_new(homogeneous) gnt_box_new(homogeneous, FALSE) - * @homo: If %TRUE, all the widgets in it will have the same width (or height)
- * @vert: Whether the widgets in it should be stacked vertically (if %TRUE)
- * or horizontally (if %FALSE).
+ * @homogeneous: If %TRUE, all the widgets in it will have the same width (or + * @vert: Whether the widgets in it should be stacked vertically (if %TRUE) or + * horizontally (if %FALSE). * Returns: The new GntBox.
-GntWidget * gnt_box_new(gboolean homo, gboolean vert);
+GntWidget *gnt_box_new(gboolean homogeneous, gboolean vert); --- a/gntwindow.c Thu Apr 25 03:42:09 2019 -0400
+++ b/gntwindow.c Wed Apr 24 21:02:26 2019 -0400
@@ -138,12 +138,13 @@
-GntWidget *gnt_window_box_new(gboolean homo, gboolean vert)
+gnt_window_box_new(gboolean homogeneous, gboolean vert) GntWidget *wid = gnt_window_new();
GntBox *box = GNT_BOX(wid);
- box->homogeneous = homo;
+ box->homogeneous = homogeneous; box->alignment = vert ? GNT_ALIGN_LEFT : GNT_ALIGN_MID;
--- a/gntwindow.h Thu Apr 25 03:42:09 2019 -0400
+++ b/gntwindow.h Wed Apr 24 21:02:26 2019 -0400
@@ -63,8 +63,8 @@
G_DECLARE_DERIVABLE_TYPE(GntWindow, gnt_window, GNT, WINDOW, GntBox)
-#define gnt_vwindow_new(homo) gnt_window_box_new(homo, TRUE)
-#define gnt_hwindow_new(homo) gnt_window_box_new(homo, FALSE)
+#define gnt_vwindow_new(homogeneous) gnt_window_box_new(homogeneous, TRUE) +#define gnt_hwindow_new(homogeneous) gnt_window_box_new(homogeneous, FALSE) @@ -77,14 +77,15 @@
- * @homo: %TRUE if the widgets inside the window should have the same dimensions.
- * @vert: %TRUE if the widgets inside the window should be stacked vertically.
+ * @homogeneous: %TRUE if the widgets inside the window should have the same + * @vert: %TRUE if the widgets inside the window should be stacked vertically. * Returns: The newly created window.
-GntWidget * gnt_window_box_new(gboolean homo, gboolean vert);
+GntWidget *gnt_window_box_new(gboolean homogeneous, gboolean vert); --- a/wms/irssi.c Thu Apr 25 03:42:09 2019 -0400
+++ b/wms/irssi.c Wed Apr 24 21:02:26 2019 -0400
@@ -129,7 +129,7 @@
-is_budddylist(GntWidget *win)
+is_buddylist(GntWidget *win) const char *name = gnt_widget_get_name(win);
if (name && strcmp(name, "buddylist") == 0)
@@ -195,8 +195,9 @@
irssi_window_resized(GntWM *wm, GntNode *node)
GntIrssiWM *irssi = NULL;
- if (!is_budddylist(node->me))
+ if (!is_buddylist(node->me)) { irssi = GNT_IRSSI_WM(wm);
gnt_widget_get_size(node->me, &irssi->buddylistwidth, NULL);
@@ -206,7 +207,7 @@
irssi_close_window(GntWM *wm, GntWidget *win)
- if (is_budddylist(win)) {
+ if (is_buddylist(win)) { GntIrssiWM *irssi = GNT_IRSSI_WM(wm);
irssi->buddylistwidth = 0;
@@ -271,7 +272,8 @@
- if (gnt_ws_is_empty(wm->cws) || is_budddylist(win = gnt_ws_get_top_widget(wm->cws))) {
+ if (gnt_ws_is_empty(wm->cws) || + is_buddylist(win = gnt_ws_get_top_widget(wm->cws))) { @@ -308,7 +310,7 @@
if (!GNT_IS_WINDOW(widget))
- if (is_budddylist(widget)) {
+ if (is_buddylist(widget)) {