From f4cb0730fd25fee4d273ea6e5563981e42ead617 Mon Sep 17 00:00:00 2001 From: rbuj Date: Sat, 6 Mar 2021 10:31:47 +0100 Subject: caja-places-sidebar: gnome-disk-utility ignores the --xid option --- src/caja-places-sidebar.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src') diff --git a/src/caja-places-sidebar.c b/src/caja-places-sidebar.c index a7281c2f..e8251748 100644 --- a/src/caja-places-sidebar.c +++ b/src/caja-places-sidebar.c @@ -26,7 +26,6 @@ #include #include -#include #include #include #include @@ -2506,8 +2505,6 @@ format_shortcut_cb (GtkMenuItem *item, GAppInfo *app_info; char *cmdline; char *device_identifier; - char *xid_string; - gint xid; GtkTreeIter iter; GVolume *volume; @@ -2521,13 +2518,10 @@ format_shortcut_cb (GtkMenuItem *item, -1); device_identifier = g_volume_get_identifier (volume, G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE); - xid = (gint) gdk_x11_window_get_xid (gtk_widget_get_window (GTK_WIDGET (item))); - xid_string = g_strdup_printf ("%d", xid); cmdline = g_strjoin (" ", "gnome-disks", "--format-device", "--block-device", device_identifier, - "--xid", xid_string, NULL); app_info = g_app_info_create_from_commandline (cmdline, NULL, 0, NULL); @@ -2535,7 +2529,6 @@ format_shortcut_cb (GtkMenuItem *item, g_free (cmdline); g_free (device_identifier); - g_free (xid_string); g_clear_object (&app_info); } -- cgit v1.2.1