summaryrefslogtreecommitdiff
path: root/mate-panel/mate-desktop-item-edit.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-09-26 17:51:47 +0300
committerlukefromdc <[email protected]>2017-09-29 14:09:29 -0400
commitcfb9e30e4137274ff0ae7de154ce543b9f67519c (patch)
tree6d8309a7ba5739661d8992fd9b4c1d44f1dcb6a4 /mate-panel/mate-desktop-item-edit.c
parentc13f02a05b80d240575d6ea58362c539cd9c00c2 (diff)
downloadmate-panel-cfb9e30e4137274ff0ae7de154ce543b9f67519c.tar.bz2
mate-panel-cfb9e30e4137274ff0ae7de154ce543b9f67519c.tar.xz
make file/folder launchers work again
fixes https://github.com/mate-desktop/mate-panel/issues/590 reverts a part of 7ee450758e4f2bee13aa8ff967a5795a6dcdc91f
Diffstat (limited to 'mate-panel/mate-desktop-item-edit.c')
-rw-r--r--mate-panel/mate-desktop-item-edit.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/mate-panel/mate-desktop-item-edit.c b/mate-panel/mate-desktop-item-edit.c
index d5d768f4..4860cf84 100644
--- a/mate-panel/mate-desktop-item-edit.c
+++ b/mate-panel/mate-desktop-item-edit.c
@@ -140,7 +140,7 @@ main (int argc, char * argv[])
if (type == G_FILE_TYPE_DIRECTORY && create_new) {
- dlg = panel_ditem_editor_new (NULL, NULL,
+ dlg = panel_ditem_editor_new (NULL, NULL, NULL,
_("Create Launcher"));
g_object_set_data_full (G_OBJECT (dlg), "dir",
g_strdup (path),
@@ -164,13 +164,14 @@ main (int argc, char * argv[])
".directory")
&& !create_new) {
dlg = panel_ditem_editor_new_directory (NULL,
+ NULL,
uri,
_("Directory Properties"));
} else if (type == G_FILE_TYPE_REGULAR
&& g_str_has_suffix (desktops [i],
".desktop")
&& !create_new) {
- dlg = panel_ditem_editor_new (NULL, uri,
+ dlg = panel_ditem_editor_new (NULL, NULL, uri,
_("Launcher Properties"));
} else if (type == G_FILE_TYPE_REGULAR
&& create_new) {
@@ -187,13 +188,13 @@ main (int argc, char * argv[])
} else if (g_str_has_suffix (desktops [i], ".directory")) {
/* a non-existant file. Well we can still edit that
* sort of. We will just create it new */
- dlg = panel_ditem_editor_new_directory (NULL, uri,
+ dlg = panel_ditem_editor_new_directory (NULL, NULL, uri,
_("Directory Properties"));
} else if (g_str_has_suffix (desktops [i], ".desktop")) {
/* a non-existant file. Well we can still edit that
* sort of. We will just create it new */
- dlg = panel_ditem_editor_new (NULL, uri,
+ dlg = panel_ditem_editor_new (NULL, NULL, uri,
_("Create Launcher"));
} else {