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
3973362c
Kaydet (Commit)
3973362c
authored
May 06, 2015
tarafından
Colomban Wendling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge pull request #486 from techee/fix_empty_symbol_tree
Fix empty symbol tree under some conditions
üst
dbcbd57e
1903b0a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
documentprivate.h
src/documentprivate.h
+2
-0
sidebar.c
src/sidebar.c
+6
-2
No files found.
src/documentprivate.h
Dosyayı görüntüle @
3973362c
...
@@ -78,6 +78,8 @@ typedef struct GeanyDocumentPrivate
...
@@ -78,6 +78,8 @@ typedef struct GeanyDocumentPrivate
GtkWidget
*
tag_tree
;
GtkWidget
*
tag_tree
;
/* GtkTreeStore object for this document within the Symbols treeview of the sidebar. */
/* GtkTreeStore object for this document within the Symbols treeview of the sidebar. */
GtkTreeStore
*
tag_store
;
GtkTreeStore
*
tag_store
;
/* Indicates whether tag tree has to be updated */
gboolean
tag_tree_dirty
;
/* Iter for this document within the Open Files treeview of the sidebar. */
/* Iter for this document within the Open Files treeview of the sidebar. */
GtkTreeIter
iter
;
GtkTreeIter
iter
;
/* Used by the Undo/Redo management code. */
/* Used by the Undo/Redo management code. */
...
...
src/sidebar.c
Dosyayı görüntüle @
3973362c
...
@@ -192,6 +192,9 @@ void sidebar_update_tag_list(GeanyDocument *doc, gboolean update)
...
@@ -192,6 +192,9 @@ void sidebar_update_tag_list(GeanyDocument *doc, gboolean update)
g_return_if_fail
(
doc
==
NULL
||
doc
->
is_valid
);
g_return_if_fail
(
doc
==
NULL
||
doc
->
is_valid
);
if
(
update
)
doc
->
priv
->
tag_tree_dirty
=
TRUE
;
if
(
gtk_notebook_get_current_page
(
GTK_NOTEBOOK
(
main_widgets
.
sidebar_notebook
))
!=
TREEVIEW_SYMBOL
)
if
(
gtk_notebook_get_current_page
(
GTK_NOTEBOOK
(
main_widgets
.
sidebar_notebook
))
!=
TREEVIEW_SYMBOL
)
return
;
/* don't bother updating symbol tree if we don't see it */
return
;
/* don't bother updating symbol tree if we don't see it */
...
@@ -219,7 +222,7 @@ void sidebar_update_tag_list(GeanyDocument *doc, gboolean update)
...
@@ -219,7 +222,7 @@ void sidebar_update_tag_list(GeanyDocument *doc, gboolean update)
return
;
return
;
}
}
if
(
update
)
if
(
doc
->
priv
->
tag_tree_dirty
)
{
/* updating the tag list in the left tag window */
{
/* updating the tag list in the left tag window */
if
(
doc
->
priv
->
tag_tree
==
NULL
)
if
(
doc
->
priv
->
tag_tree
==
NULL
)
{
{
...
@@ -232,6 +235,7 @@ void sidebar_update_tag_list(GeanyDocument *doc, gboolean update)
...
@@ -232,6 +235,7 @@ void sidebar_update_tag_list(GeanyDocument *doc, gboolean update)
}
}
doc
->
has_tags
=
symbols_recreate_tag_list
(
doc
,
SYMBOLS_SORT_USE_PREVIOUS
);
doc
->
has_tags
=
symbols_recreate_tag_list
(
doc
,
SYMBOLS_SORT_USE_PREVIOUS
);
doc
->
priv
->
tag_tree_dirty
=
FALSE
;
}
}
if
(
doc
->
has_tags
)
if
(
doc
->
has_tags
)
...
@@ -1088,7 +1092,7 @@ static void on_sidebar_switch_page(GtkNotebook *notebook,
...
@@ -1088,7 +1092,7 @@ static void on_sidebar_switch_page(GtkNotebook *notebook,
gpointer
page
,
guint
page_num
,
gpointer
user_data
)
gpointer
page
,
guint
page_num
,
gpointer
user_data
)
{
{
if
(
page_num
==
TREEVIEW_SYMBOL
)
if
(
page_num
==
TREEVIEW_SYMBOL
)
sidebar_update_tag_list
(
document_get_current
(),
TRU
E
);
sidebar_update_tag_list
(
document_get_current
(),
FALS
E
);
}
}
...
...
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