diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-02-22 19:09:36 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-02-22 19:09:36 (GMT) |
commit | 08f3cc8d6262c9b5412a008c6210e88cd840da85 (patch) | |
tree | 087e1de61979402b712068603fd5ceb4ec332f70 /src/gui/tb | |
parent | b639c1f4abca32152bf88f8fd47a9cd114da701b (diff) |
Fixed a few GLib/GTK compilation warnings.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@477 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gui/tb')
-rw-r--r-- | src/gui/tb/portions.c | 7 | ||||
-rw-r--r-- | src/gui/tb/source.c | 7 |
2 files changed, 2 insertions, 12 deletions
diff --git a/src/gui/tb/portions.c b/src/gui/tb/portions.c index 3d30a9e..7e9cb6c 100644 --- a/src/gui/tb/portions.c +++ b/src/gui/tb/portions.c @@ -118,7 +118,6 @@ static void g_portions_tbitem_class_init(GPortionsTbItemClass *klass) static void g_portions_tbitem_init(GPortionsTbItem *item) { GtkWidget *widget; /* Composant principal */ - GtkWidget *handlebox; /* Support relocalisable */ GtkWidget *strip; /* Bande pour binaire */ widget = GTK_WIDGET(gtk_tool_item_new()); @@ -127,13 +126,9 @@ static void g_portions_tbitem_init(GPortionsTbItem *item) G_EDITOR_ITEM(item)->widget = widget; - handlebox = gtk_handle_box_new(); - gtk_widget_show(handlebox); - gtk_container_add(GTK_CONTAINER(widget), handlebox); - strip = gtk_binary_strip_new(); gtk_widget_show(strip); - gtk_container_add(GTK_CONTAINER(handlebox), strip); + gtk_container_add(GTK_CONTAINER(widget), strip); g_object_set_data(G_OBJECT(widget), "strip", strip); diff --git a/src/gui/tb/source.c b/src/gui/tb/source.c index 9f041a1..61ad242 100644 --- a/src/gui/tb/source.c +++ b/src/gui/tb/source.c @@ -124,7 +124,6 @@ static void g_source_tbitem_class_init(GSourceTbItemClass *klass) static void g_source_tbitem_init(GSourceTbItem *item) { GtkWidget *widget; /* Composant principal */ - GtkWidget *handlebox; /* Support relocalisable */ GtkWidget *hbox; /* Support interne */ GtkWidget *label; /* Etiquette d'introduction */ GtkWidget *comboboxentry; /* Liste de fichiers */ @@ -134,13 +133,9 @@ static void g_source_tbitem_init(GSourceTbItem *item) G_EDITOR_ITEM(item)->widget = widget; - handlebox = gtk_handle_box_new(); - gtk_widget_show(handlebox); - gtk_container_add(GTK_CONTAINER(widget), handlebox); - hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 8); gtk_widget_show(hbox); - gtk_container_add(GTK_CONTAINER(handlebox), hbox); + gtk_container_add(GTK_CONTAINER(widget), hbox); label = qck_create_label(G_OBJECT(widget), "label", _(" Source: ")); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); |