summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-02-22 19:09:36 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-02-22 19:09:36 (GMT)
commit08f3cc8d6262c9b5412a008c6210e88cd840da85 (patch)
tree087e1de61979402b712068603fd5ceb4ec332f70 /src
parentb639c1f4abca32152bf88f8fd47a9cd114da701b (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')
-rw-r--r--src/gui/panels/bookmarks.c1
-rw-r--r--src/gui/panels/regedit.c1
-rw-r--r--src/gui/panels/symbols.c1
-rw-r--r--src/gui/panels/welcome.c8
-rw-r--r--src/gui/tb/portions.c7
-rw-r--r--src/gui/tb/source.c7
6 files changed, 3 insertions, 22 deletions
diff --git a/src/gui/panels/bookmarks.c b/src/gui/panels/bookmarks.c
index 7397ef5..99c1673 100644
--- a/src/gui/panels/bookmarks.c
+++ b/src/gui/panels/bookmarks.c
@@ -277,7 +277,6 @@ static void g_bookmarks_panel_init(GBookmarksPanel *panel)
CAIRO_GOBJECT_TYPE_SURFACE, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store));
- gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(treeview), TRUE);
panel->treeview = GTK_TREE_VIEW(treeview);
g_signal_connect(G_OBJECT(treeview), "button-press-event",
diff --git a/src/gui/panels/regedit.c b/src/gui/panels/regedit.c
index 3819e64..3145385 100644
--- a/src/gui/panels/regedit.c
+++ b/src/gui/panels/regedit.c
@@ -250,7 +250,6 @@ static void g_regedit_panel_init(GRegeditPanel *panel)
G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store));
- gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(treeview), TRUE);
panel->treeview = GTK_TREE_VIEW(treeview);
g_signal_connect(G_OBJECT(treeview), "button-press-event",
diff --git a/src/gui/panels/symbols.c b/src/gui/panels/symbols.c
index 40f1f76..7be9749 100644
--- a/src/gui/panels/symbols.c
+++ b/src/gui/panels/symbols.c
@@ -323,7 +323,6 @@ static void g_symbols_panel_init(GSymbolsPanel *panel)
treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(panel->store));
gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(treeview), FALSE);
gtk_tree_view_set_enable_tree_lines(GTK_TREE_VIEW(treeview), TRUE);
- gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(treeview), TRUE);
panel->treeview = GTK_TREE_VIEW(treeview);
diff --git a/src/gui/panels/welcome.c b/src/gui/panels/welcome.c
index 0f11b58..497e289 100644
--- a/src/gui/panels/welcome.c
+++ b/src/gui/panels/welcome.c
@@ -103,26 +103,20 @@ static void g_welcome_panel_class_init(GWelcomePanelClass *klass)
static void g_welcome_panel_init(GWelcomePanel *panel)
{
- GtkWidget *support; /* Fond du panneau */
GtkWidget *align; /* Alignement centré */
gchar *filename; /* Chemin d'accès au fichier */
GtkWidget *image; /* Image chargée */
GEditorItem *base; /* Version basique d'instance */
- support = gtk_handle_box_new();
- //gtk_widget_modify_bg(support, GTK_STATE_NORMAL, &support->style->bg[GTK_STATE_NORMAL]);
- gtk_widget_show(support);
-
align = gtk_alignment_new(0.5f, 0.5f, 0.0f, 0.0f);
gtk_widget_show(align);
- gtk_container_add(GTK_CONTAINER(support), align);
filename = find_pixmap_file("welcome.png");
image = qck_create_image(NULL, NULL, filename);
gtk_container_add(GTK_CONTAINER(align), image);
base = G_EDITOR_ITEM(panel);
- base->widget = support;
+ base->widget = align;
}
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);