[gnome-disk-utility] disk-image-mounter: Fix deprecation and other warnings
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] disk-image-mounter: Fix deprecation and other warnings
- Date: Mon, 20 Jan 2014 07:30:00 +0000 (UTC)
commit 70aad5662892b8dc82bc198593cff31fd0e9602b
Author: David Zeuthen <zeuthen gmail com>
Date: Sat Jan 18 17:25:57 2014 -0800
disk-image-mounter: Fix deprecation and other warnings
Signed-off-by: David Zeuthen <zeuthen gmail com>
src/disk-image-mounter/main.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/disk-image-mounter/main.c b/src/disk-image-mounter/main.c
index 0eff7b1..8d6a50c 100644
--- a/src/disk-image-mounter/main.c
+++ b/src/disk-image-mounter/main.c
@@ -23,6 +23,8 @@ static GMainLoop *main_loop = NULL;
/* ---------------------------------------------------------------------------------------------------- */
+static void show_error (const gchar *format, ...) G_GNUC_PRINTF (1, 2);
+
static void
show_error (const gchar *format, ...)
{
@@ -80,7 +82,7 @@ do_filechooser (void)
dialog = gtk_file_chooser_dialog_new (_("Select Disk Image(s) to Mount"),
NULL, /* parent window */
GTK_FILE_CHOOSER_ACTION_OPEN,
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ _("_Cancel"), GTK_RESPONSE_CANCEL,
_("_Mount"), GTK_RESPONSE_ACCEPT,
NULL);
gdu_utils_configure_file_chooser_for_disk_images (GTK_FILE_CHOOSER (dialog),
@@ -124,7 +126,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- g_type_init ();
have_gtk = gtk_init_check (&argc, &argv);
main_loop = g_main_loop_new (NULL, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]