[ekiga] Fix compile warnings
- From: Eugen Dedu <ededu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Fix compile warnings
- Date: Tue, 17 Nov 2015 13:05:27 +0000 (UTC)
commit 351247fe5028f8f83ab4aa661710c717cf750994
Author: Eugen Dedu <eugen dedu univ-fcomte fr>
Date: Tue Nov 17 14:02:42 2015 +0100
Fix compile warnings
It remains to fix statusicon.cpp file, we need to see how to replace it.
lib/engine/gui/gtk-frontend/statusmenu.cpp | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/statusmenu.cpp b/lib/engine/gui/gtk-frontend/statusmenu.cpp
index 440eb72..94c973c 100644
--- a/lib/engine/gui/gtk-frontend/statusmenu.cpp
+++ b/lib/engine/gui/gtk-frontend/statusmenu.cpp
@@ -521,13 +521,13 @@ status_menu_clear_status_message_dialog_run (StatusMenu *self)
dialog = gtk_dialog_new_with_buttons (_("Custom Message"),
self->priv->parent,
(GtkDialogFlags) (GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT),
- GTK_STOCK_DELETE,
+ "_Delete",
GTK_RESPONSE_APPLY,
- GTK_STOCK_CLOSE,
+ "_Close",
GTK_RESPONSE_CLOSE,
NULL);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CLOSE);
- gtk_window_set_icon_name (GTK_WINDOW (dialog), GTK_STOCK_DELETE);
+ gtk_window_set_icon_name (GTK_WINDOW (dialog), "edit-delete");
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 6);
@@ -535,7 +535,11 @@ status_menu_clear_status_message_dialog_run (StatusMenu *self)
label = gtk_label_new (_("Delete custom messages:"));
+#if GTK_CHECK_VERSION(3,16,0)
+ gtk_label_set_xalign (GTK_LABEL (label), 0);
+#else
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+#endif
gtk_box_pack_start (GTK_BOX (vbox), label, false, false, 2);
list_store = gtk_list_store_new (3,
@@ -669,7 +673,7 @@ status_menu_new_status_message_dialog_run (StatusMenu *self,
dialog = gtk_dialog_new_with_buttons (_("Custom Message"),
self->priv->parent,
(GtkDialogFlags) (GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT),
- GTK_STOCK_OK,
+ "_OK",
GTK_RESPONSE_ACCEPT,
NULL);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT);
@@ -684,7 +688,11 @@ status_menu_new_status_message_dialog_run (StatusMenu *self,
gtk_box_pack_start (GTK_BOX (hbox), image, false, false, 2);
label = gtk_label_new (_("Define a custom message:"));
+#if GTK_CHECK_VERSION(3,16,0)
+ gtk_label_set_xalign (GTK_LABEL (label), 0);
+#else
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+#endif
gtk_box_pack_start (GTK_BOX (hbox), label, false, false, 2);
gtk_box_pack_start (GTK_BOX (vbox), hbox, false, false, 2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]