summaryrefslogtreecommitdiff
path: root/src/dialogs
diff options
context:
space:
mode:
Diffstat (limited to 'src/dialogs')
-rw-r--r--src/dialogs/about.c2
-rw-r--r--src/dialogs/plugins.c32
-rw-r--r--src/dialogs/shellcode.c2
3 files changed, 17 insertions, 19 deletions
diff --git a/src/dialogs/about.c b/src/dialogs/about.c
index 7f9c0e3..7ed38fd 100644
--- a/src/dialogs/about.c
+++ b/src/dialogs/about.c
@@ -126,7 +126,7 @@ GtkWidget *create_about_dialog(GtkWindow *parent)
/* Copyright */
label = qck_create_label(NULL, NULL, "<span fgcolor='white'>Copyright (C) 2010-2014 Cyrille Bagard</span>");
- gtk_misc_set_alignment(GTK_MISC(label), 0.5, 0.5);
+ gtk_widget_set_halign(label, GTK_ALIGN_CENTER);
gtk_label_set_use_markup(GTK_LABEL(label), TRUE);
gtk_fixed_put(GTK_FIXED(fixed), label, 0, 400);
gtk_widget_set_size_request(label, 350, 20);
diff --git a/src/dialogs/plugins.c b/src/dialogs/plugins.c
index 4e7bfaf..93ea5ec 100644
--- a/src/dialogs/plugins.c
+++ b/src/dialogs/plugins.c
@@ -24,11 +24,15 @@
#include "plugins.h"
+#include <i18n.h>
+
+
+#include "../gtkext/easygtk.h"
+
-#define _(str) str
@@ -76,11 +80,9 @@ GtkWidget *create_plugins_selection_dialog(GLoadedBinary *binary, GtkWindow *par
GtkWidget *expander1;
GtkWidget *hbox4;
GtkWidget *vbox3;
- GtkWidget *label5;
+ GtkWidget *label; /* Etiquette d'introduction */
GtkWidget *label8;
- GtkWidget *label6;
GtkWidget *label9;
- GtkWidget *label7;
GtkWidget *label10;
GtkWidget *frame1;
GtkWidget *alignment3;
@@ -207,28 +209,25 @@ GtkWidget *create_plugins_selection_dialog(GLoadedBinary *binary, GtkWindow *par
gtk_widget_show(vbox3);
gtk_box_pack_start(GTK_BOX(hbox4), vbox3, TRUE, TRUE, 0);
- label5 = gtk_label_new(_("Author:"));
- gtk_widget_show(label5);
- gtk_box_pack_start(GTK_BOX(vbox3), label5, FALSE, FALSE, 0);
- gtk_misc_set_alignment(GTK_MISC(label5), 0, 0.5);
+ label = qck_create_label(NULL, NULL, _("Author:"));
+ gtk_widget_show(label);
+ gtk_box_pack_start(GTK_BOX(vbox3), label, FALSE, FALSE, 0);
label8 = gtk_label_new(_("label8"));
gtk_widget_show(label8);
gtk_box_pack_start(GTK_BOX(vbox3), label8, FALSE, FALSE, 0);
- label6 = gtk_label_new(_("Version:"));
- gtk_widget_show(label6);
- gtk_box_pack_start(GTK_BOX(vbox3), label6, FALSE, FALSE, 0);
- gtk_misc_set_alignment(GTK_MISC(label6), 0, 0.5);
+ label = qck_create_label(NULL, NULL, _("Version:"));
+ gtk_widget_show(label);
+ gtk_box_pack_start(GTK_BOX(vbox3), label, FALSE, FALSE, 0);
label9 = gtk_label_new(_("label9"));
gtk_widget_show(label9);
gtk_box_pack_start(GTK_BOX(vbox3), label9, FALSE, FALSE, 0);
- label7 = gtk_label_new(_("URL:"));
- gtk_widget_show(label7);
- gtk_box_pack_start(GTK_BOX(vbox3), label7, FALSE, FALSE, 0);
- gtk_misc_set_alignment(GTK_MISC(label7), 0, 0.5);
+ label = qck_create_label(NULL, NULL, _("URL:"));
+ gtk_widget_show(label);
+ gtk_box_pack_start(GTK_BOX(vbox3), label, FALSE, FALSE, 0);
label10 = gtk_label_new(_("label10"));
gtk_widget_show(label10);
@@ -247,7 +246,6 @@ GtkWidget *create_plugins_selection_dialog(GLoadedBinary *binary, GtkWindow *par
label12 = gtk_label_new(_("label12"));
gtk_widget_show(label12);
gtk_container_add(GTK_CONTAINER(alignment3), label12);
- gtk_misc_set_alignment(GTK_MISC(label12), 0, 0);
label11 = gtk_label_new(_("<b>Action</b>"));
gtk_widget_show(label11);
diff --git a/src/dialogs/shellcode.c b/src/dialogs/shellcode.c
index 514386f..eb727b0 100644
--- a/src/dialogs/shellcode.c
+++ b/src/dialogs/shellcode.c
@@ -277,7 +277,7 @@ static void register_bincode_panel(GtkAssistant *assistant)
/* Validation */
label = qck_create_label(G_OBJECT(assistant), "status", _("No code"));
- gtk_misc_set_alignment(GTK_MISC(label), 0.5, 0.5);
+ gtk_widget_set_halign(label, GTK_ALIGN_CENTER);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
/* Intégration */