diff options
author | Wu Xiaotian <[email protected]> | 2018-12-14 18:01:46 +0800 |
---|---|---|
committer | lukefromdc <[email protected]> | 2018-12-21 22:47:02 +0000 |
commit | 0e2eb8a311586599bbd3937d413da2f78eedb4d6 (patch) | |
tree | c29979d0f3ff1749769bf9668133683fc270725e /capplet/gsm-properties-dialog.c | |
parent | 34ef232530e30a2ebc32d41bae8a112323adbcc2 (diff) | |
download | mate-session-manager-0e2eb8a311586599bbd3937d413da2f78eedb4d6.tar.bz2 mate-session-manager-0e2eb8a311586599bbd3937d413da2f78eedb4d6.tar.xz |
Add a delay setting to Startup Manager
Fixed issue #127
- capplet/gsm-app-dialog.c
- capplet/gsm-app-dialog.h
- capplet/gsm-properties-dialog.c
- capplet/gsp-app.c
- capplet/gsp-app.h
- capplet/gsp-keyfile.h
- data/session-properties.ui
Diffstat (limited to 'capplet/gsm-properties-dialog.c')
-rw-r--r-- | capplet/gsm-properties-dialog.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/capplet/gsm-properties-dialog.c b/capplet/gsm-properties-dialog.c index 3e080ed..20ceac8 100644 --- a/capplet/gsm-properties-dialog.c +++ b/capplet/gsm-properties-dialog.c @@ -361,14 +361,15 @@ on_add_app_clicked (GtkWidget *widget, char *name; char *exec; char *comment; + guint delay; - add_dialog = gsm_app_dialog_new (NULL, NULL, NULL); + add_dialog = gsm_app_dialog_new (NULL, NULL, NULL, 0); gtk_window_set_transient_for (GTK_WINDOW (add_dialog), GTK_WINDOW (dialog)); if (gsm_app_dialog_run (GSM_APP_DIALOG (add_dialog), - &name, &exec, &comment)) { - gsp_app_create (name, comment, exec); + &name, &exec, &comment, &delay)) { + gsp_app_create (name, comment, exec, delay); g_free (name); g_free (exec); g_free (comment); @@ -426,16 +427,18 @@ on_edit_app_clicked (GtkWidget *widget, char *name; char *exec; char *comment; + guint delay; edit_dialog = gsm_app_dialog_new (gsp_app_get_name (app), gsp_app_get_exec (app), - gsp_app_get_comment (app)); + gsp_app_get_comment (app), + gsp_app_get_delay (app)); gtk_window_set_transient_for (GTK_WINDOW (edit_dialog), GTK_WINDOW (dialog)); if (gsm_app_dialog_run (GSM_APP_DIALOG (edit_dialog), - &name, &exec, &comment)) { - gsp_app_update (app, name, comment, exec); + &name, &exec, &comment, &delay)) { + gsp_app_update (app, name, comment, exec, delay); g_free (name); g_free (exec); g_free (comment); |