Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
G
geany
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
geany
Commits
055779fb
Kaydet (Commit)
055779fb
authored
Eki 11, 2011
tarafından
Nick Treleaven
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Cleanup dialogs_show_unsaved_file().
üst
57629811
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
dialogs.c
src/dialogs.c
+11
-12
No files found.
src/dialogs.c
Dosyayı görüntüle @
055779fb
...
...
@@ -833,7 +833,7 @@ gboolean dialogs_show_unsaved_file(GeanyDocument *doc)
{
gchar
*
msg
,
*
short_fn
=
NULL
;
const
gchar
*
msg2
;
gint
re
t
;
gint
re
sponse
;
gboolean
old_quitting_state
=
main_status
.
quitting
;
/* display the file tab to remind the user of the document */
...
...
@@ -843,33 +843,32 @@ gboolean dialogs_show_unsaved_file(GeanyDocument *doc)
short_fn
=
document_get_basename_for_display
(
doc
,
-
1
);
msg
=
g_strdup_printf
(
_
(
"The file '%s' is not saved."
),
(
short_fn
!=
NULL
)
?
short_fn
:
GEANY_STRING_UNTITLED
);
msg
=
g_strdup_printf
(
_
(
"The file '%s' is not saved."
),
short_fn
);
msg2
=
_
(
"Do you want to save it before closing?"
);
g_free
(
short_fn
);
re
t
=
run_unsaved_dialog
(
msg
,
msg2
);
re
sponse
=
run_unsaved_dialog
(
msg
,
msg2
);
g_free
(
msg
);
switch
(
re
t
)
switch
(
re
sponse
)
{
case
GTK_RESPONSE_YES
:
{
if
(
document_need_save_as
(
doc
))
{
ret
=
dialogs_show_save_as
();
ret
urn
dialogs_show_save_as
();
}
else
/* document_save_file() returns the status if the file could be saved */
ret
=
document_save_file
(
doc
,
FALSE
);
break
;
return
document_save_file
(
doc
,
FALSE
);
}
case
GTK_RESPONSE_NO
:
ret
=
TRUE
;
break
;
case
GTK_RESPONSE_NO
:
return
TRUE
;
case
GTK_RESPONSE_CANCEL
:
/* fall through to default and leave the function */
default:
ret
=
FALSE
;
break
;
default:
return
FALSE
;
}
return
(
gboolean
)
ret
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment