summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-03-06 10:31:47 +0100
committerraveit65 <[email protected]>2021-03-11 22:42:03 +0100
commit4b479a67349751c1251caa9adb088d72e69695f3 (patch)
treed72d69bc800829aeb359e53b1729db74034c1a50 /src
parentf7b858bc118e018e81ff29340e86e12a3e82e986 (diff)
downloadcaja-4b479a67349751c1251caa9adb088d72e69695f3.tar.bz2
caja-4b479a67349751c1251caa9adb088d72e69695f3.tar.xz
caja-places-sidebar: gnome-disk-utility ignores the --xid option
Diffstat (limited to 'src')
-rw-r--r--src/caja-places-sidebar.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/caja-places-sidebar.c b/src/caja-places-sidebar.c
index 0848e70d..2b8fe2e2 100644
--- a/src/caja-places-sidebar.c
+++ b/src/caja-places-sidebar.c
@@ -26,7 +26,6 @@
#include <cairo-gobject.h>
#include <gdk/gdkkeysyms.h>
-#include <gdk/gdkx.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <gio/gio.h>
@@ -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);
}