summaryrefslogtreecommitdiff
path: root/src/gtkext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-09-02 19:47:19 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-09-02 19:47:19 (GMT)
commit9f8c79e3b272960b48bfd85a24f4b5cb5651df2d (patch)
tree8a7762095a3a77855a880abdabb27ed2e4be97a6 /src/gtkext
parentcc8ef5d978eac0d79ddb2ec4525261c25eb159d1 (diff)
Fixed two GCC warnings when using GTK.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@575 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext')
-rw-r--r--src/gtkext/easygtk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gtkext/easygtk.c b/src/gtkext/easygtk.c
index 61e8953..77b29bd 100644
--- a/src/gtkext/easygtk.c
+++ b/src/gtkext/easygtk.c
@@ -434,7 +434,7 @@ static void _finish_button_with_img(GtkWidget *button, GObject *object, const ch
if (picture != NULL && label != NULL)
{
- hbox = gtk_hbox_new(FALSE, 2);
+ hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 2);
gtk_widget_show(hbox);
gtk_container_add(GTK_CONTAINER(button), hbox);
@@ -932,7 +932,7 @@ void add_accelerator_to_menu_item(GtkWidget *item, const char *accelerator, GtkA
return TRUE;
}
- g_signal_connect(item, "can-activate-accel", force_accel_activation, NULL);
+ g_signal_connect(item, "can-activate-accel", G_CALLBACK(force_accel_activation), NULL);
gtk_widget_add_accelerator(item, "activate", group,
key, mods, GTK_ACCEL_VISIBLE);