|
|
932fb9 |
From 6e109a641be45bc75b6d73f6a318bfdf294c2fbf Mon Sep 17 00:00:00 2001
|
|
|
932fb9 |
From: Trent Lloyd <trent@lloyd.id.au>
|
|
|
932fb9 |
Date: Thu, 16 Jan 2014 11:14:10 +0800
|
|
|
932fb9 |
Subject: [PATCH] avahi-ui: Replace usage of deprecated GTK Stock Items API
|
|
|
932fb9 |
|
|
|
932fb9 |
Converted to recommended label text or icon name from
|
|
|
932fb9 |
https://docs.google.com/spreadsheet/pub?key=0AsPAM3pPwxagdGF4THNMMUpjUW5xMXZfdUNzMXhEa2c
|
|
|
932fb9 |
---
|
|
|
932fb9 |
avahi-ui/avahi-ui.c | 6 +++---
|
|
|
932fb9 |
avahi-ui/bssh.c | 6 +++---
|
|
|
932fb9 |
2 files changed, 6 insertions(+), 6 deletions(-)
|
|
|
932fb9 |
|
|
|
932fb9 |
diff --git a/avahi-ui/avahi-ui.c b/avahi-ui/avahi-ui.c
|
|
|
932fb9 |
index 92d765a..3845066 100644
|
|
|
932fb9 |
--- a/avahi-ui/avahi-ui.c
|
|
|
932fb9 |
+++ b/avahi-ui/avahi-ui.c
|
|
|
932fb9 |
@@ -1032,8 +1032,8 @@ static void domain_button_clicked(GtkButton *button G_GNUC_UNUSED, gpointer user
|
|
|
932fb9 |
gtk_progress_bar_set_pulse_step(GTK_PROGRESS_BAR(p->domain_progress_bar), 0.1);
|
|
|
932fb9 |
gtk_box_pack_end(GTK_BOX(vbox2), p->domain_progress_bar, FALSE, FALSE, 0);
|
|
|
932fb9 |
|
|
|
932fb9 |
- gtk_dialog_add_button(GTK_DIALOG(p->domain_dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
|
|
|
932fb9 |
- p->domain_ok_button = GTK_WIDGET(gtk_dialog_add_button(GTK_DIALOG(p->domain_dialog), GTK_STOCK_OK, GTK_RESPONSE_ACCEPT));
|
|
|
932fb9 |
+ gtk_dialog_add_button(GTK_DIALOG(p->domain_dialog), _("_Cancel"), GTK_RESPONSE_CANCEL);
|
|
|
932fb9 |
+ p->domain_ok_button = GTK_WIDGET(gtk_dialog_add_button(GTK_DIALOG(p->domain_dialog), _("_OK"), GTK_RESPONSE_ACCEPT));
|
|
|
932fb9 |
gtk_dialog_set_default_response(GTK_DIALOG(p->domain_dialog), GTK_RESPONSE_ACCEPT);
|
|
|
932fb9 |
gtk_widget_set_sensitive(p->domain_ok_button, is_valid_domain_suffix(gtk_entry_get_text(GTK_ENTRY(p->domain_entry))));
|
|
|
932fb9 |
|
|
|
932fb9 |
@@ -1164,7 +1164,7 @@ static void aui_service_dialog_init(AuiServiceDialog *d) {
|
|
|
932fb9 |
gtk_box_pack_end(GTK_BOX(vbox2), p->service_progress_bar, FALSE, FALSE, 0);
|
|
|
932fb9 |
|
|
|
932fb9 |
p->domain_button = gtk_button_new_with_mnemonic(_("_Domain..."));
|
|
|
932fb9 |
- gtk_button_set_image(GTK_BUTTON(p->domain_button), gtk_image_new_from_stock(GTK_STOCK_NETWORK, GTK_ICON_SIZE_BUTTON));
|
|
|
932fb9 |
+ gtk_button_set_image(GTK_BUTTON(p->domain_button), gtk_image_new_from_icon_name("network-workgroup", GTK_ICON_SIZE_BUTTON));
|
|
|
932fb9 |
g_signal_connect(p->domain_button, "clicked", G_CALLBACK(domain_button_clicked), d);
|
|
|
932fb9 |
gtk_box_pack_start(GTK_BOX(gtk_dialog_get_action_area(GTK_DIALOG(d))), p->domain_button, FALSE, TRUE, 0);
|
|
|
932fb9 |
gtk_button_box_set_child_secondary(GTK_BUTTON_BOX(gtk_dialog_get_action_area(GTK_DIALOG(d))), p->domain_button, TRUE);
|
|
|
932fb9 |
diff --git a/avahi-ui/bssh.c b/avahi-ui/bssh.c
|
|
|
932fb9 |
index 491380f..ebe8b82 100644
|
|
|
932fb9 |
--- a/avahi-ui/bssh.c
|
|
|
932fb9 |
+++ b/avahi-ui/bssh.c
|
|
|
932fb9 |
@@ -146,19 +146,19 @@ int main(int argc, char*argv[]) {
|
|
|
932fb9 |
break;
|
|
|
932fb9 |
|
|
|
932fb9 |
case COMMAND_SHELL:
|
|
|
932fb9 |
- d = aui_service_dialog_new(_("Choose Shell Server"), NULL, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_CONNECT, GTK_RESPONSE_ACCEPT, NULL);
|
|
|
932fb9 |
+ d = aui_service_dialog_new(_("Choose Shell Server"), NULL, _("_Cancel"), GTK_RESPONSE_CANCEL, _("C_onnect"), GTK_RESPONSE_ACCEPT, NULL);
|
|
|
932fb9 |
aui_service_dialog_set_browse_service_types(AUI_SERVICE_DIALOG(d), "_rfb._tcp", "_ssh._tcp", NULL);
|
|
|
932fb9 |
aui_service_dialog_set_service_type_name(AUI_SERVICE_DIALOG(d), "_rfb._tcp", _("Desktop"));
|
|
|
932fb9 |
aui_service_dialog_set_service_type_name(AUI_SERVICE_DIALOG(d), "_ssh._tcp", _("Terminal"));
|
|
|
932fb9 |
break;
|
|
|
932fb9 |
|
|
|
932fb9 |
case COMMAND_VNC:
|
|
|
932fb9 |
- d = aui_service_dialog_new(_("Choose VNC server"), NULL, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_CONNECT, GTK_RESPONSE_ACCEPT, NULL);
|
|
|
932fb9 |
+ d = aui_service_dialog_new(_("Choose VNC server"), NULL, _("_Cancel"), GTK_RESPONSE_CANCEL, _("C_onnect"), GTK_RESPONSE_ACCEPT, NULL);
|
|
|
932fb9 |
aui_service_dialog_set_browse_service_types(AUI_SERVICE_DIALOG(d), "_rfb._tcp", NULL);
|
|
|
932fb9 |
break;
|
|
|
932fb9 |
|
|
|
932fb9 |
case COMMAND_SSH:
|
|
|
932fb9 |
- d = aui_service_dialog_new(_("Choose SSH server"), NULL, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_CONNECT, GTK_RESPONSE_ACCEPT, NULL);
|
|
|
932fb9 |
+ d = aui_service_dialog_new(_("Choose SSH server"), NULL, _("_Cancel"), GTK_RESPONSE_CANCEL, _("C_onnect"), GTK_RESPONSE_ACCEPT, NULL);
|
|
|
932fb9 |
aui_service_dialog_set_browse_service_types(AUI_SERVICE_DIALOG(d), "_ssh._tcp", NULL);
|
|
|
932fb9 |
break;
|
|
|
932fb9 |
}
|
|
|
932fb9 |
--
|
|
|
932fb9 |
2.7.4
|
|
|
932fb9 |
|