summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-03-06 10:31:47 +0100
committerraveit65 <[email protected]>2022-07-21 19:33:51 +0200
commitf4cb0730fd25fee4d273ea6e5563981e42ead617 (patch)
tree81d7e6b11c8fea9c301b1775fa467700bf9977d2 /src
parent48a91c09095d383b3f25cca8b2c9d79c1daf7e3b (diff)
downloadcaja-f4cb0730fd25fee4d273ea6e5563981e42ead617.tar.bz2
caja-f4cb0730fd25fee4d273ea6e5563981e42ead617.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 a7281c2f..e8251748 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);
}