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
committermonsta <[email protected]>2017-09-30 12:17:28 +0300
commit6535fefbddb1d2dd6cb93a60789e3a73c57d7fb0 (patch)
tree4db6f6602b3119fbf68b055d61a10e206a1a7bad /mate-panel/mate-desktop-item-edit.c
parent1e2b86c0e6d940a9b5746b1244181664d905c781 (diff)
downloadmate-panel-6535fefbddb1d2dd6cb93a60789e3a73c57d7fb0.tar.bz2
mate-panel-6535fefbddb1d2dd6cb93a60789e3a73c57d7fb0.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 {