[gedit] documents-panel: changes for style
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] documents-panel: changes for style
- Date: Sat, 15 Feb 2014 15:05:48 +0000 (UTC)
commit 76a5b60073922dee7308c7fc297676a649843425
Author: Sebastien Lafargue <slaf66 gmail com>
Date: Sat Feb 15 15:53:14 2014 +0100
documents-panel: changes for style
https://bugzilla.gnome.org/show_bug.cgi?id=724140
gedit/gedit-documents-panel.c | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/gedit/gedit-documents-panel.c b/gedit/gedit-documents-panel.c
index dd6d4b2..dd017bc 100644
--- a/gedit/gedit-documents-panel.c
+++ b/gedit/gedit-documents-panel.c
@@ -280,8 +280,14 @@ row_state_changed (GtkWidget *row,
flags = gtk_widget_get_state_flags (row);
- gtk_widget_set_visible (generic_row->close_button,
- flags & GTK_STATE_FLAG_PRELIGHT);
+ if (flags & GTK_STATE_FLAG_PRELIGHT)
+ {
+ gtk_style_context_add_class (gtk_widget_get_style_context (row), "prelight-row");
+ }
+ else
+ {
+ gtk_style_context_remove_class (gtk_widget_get_style_context (row), "prelight-row");
+ }
if (GEDIT_IS_DOCUMENTS_GROUP_ROW (row))
{
@@ -1070,7 +1076,6 @@ row_create (GtkWidget *row)
row);
gtk_widget_set_no_show_all (generic_row->status_label, TRUE);
- gtk_widget_set_no_show_all (generic_row->close_button, TRUE);
gtk_widget_show_all (event_box);
return event_box;
@@ -1125,7 +1130,6 @@ gedit_documents_document_row_init (GeditDocumentsDocumentRow *row)
gtk_style_context_add_class (context, "gedit-document-panel-document-row");
gtk_widget_show_all (GTK_WIDGET (row));
- gtk_widget_hide (row->close_button);
gtk_widget_set_can_focus (GTK_WIDGET (row), FALSE);
}
@@ -1152,7 +1156,6 @@ gedit_documents_group_row_init (GeditDocumentsGroupRow *row)
gtk_style_context_add_class (context, "gedit-document-panel-group-row");
gtk_widget_show_all (GTK_WIDGET (row));
- gtk_widget_hide (row->close_button);
gtk_widget_set_can_focus (GTK_WIDGET (row), FALSE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]