[gnome-photos] dropdown, theme: Remove custom photos-dropdown style class
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] dropdown, theme: Remove custom photos-dropdown style class
- Date: Sat, 25 Mar 2017 11:28:10 +0000 (UTC)
commit 6699b53fdcbb0f69269626a078e3e33f34a250c6
Author: Debarshi Ray <debarshir gnome org>
Date: Sat Mar 25 12:13:01 2017 +0100
dropdown, theme: Remove custom photos-dropdown style class
It's been no longer necessary ever since Dropdown was ported to
GtkPopopver in commit ad0bab7c194f21b09b4d711a0aa2d9e3a68997b2. It was
eventually removed from the corresponding gnome-documents code when
Dropdown was further ported to GMenuModel. We forgot to do that in
gnome-photos commit c8d6651218c1419c776e2b9d00e1203d3f46787f.
https://bugzilla.gnome.org/show_bug.cgi?id=780424
data/Adwaita.css | 39 -----------------
data/Makefile.am | 4 --
data/sidebar-radio-checked.svg | 66 ------------------------------
data/sidebar-radio-prelight.svg | 66 ------------------------------
data/sidebar-radio-selected-prelight.svg | 66 ------------------------------
data/sidebar-radio-selected.svg | 66 ------------------------------
src/photos-dropdown.c | 3 -
src/photos.gresource.xml | 4 --
8 files changed, 0 insertions(+), 314 deletions(-)
---
diff --git a/data/Adwaita.css b/data/Adwaita.css
index 3ed6468..2c16205 100644
--- a/data/Adwaita.css
+++ b/data/Adwaita.css
@@ -64,45 +64,6 @@ GdMainIconView.content-view.cell:active {
-gtk-icon-shadow: 0 1px #000000;
}
-.photos-dropdown,
-.photos-dropdown .view {
- background-color: shade (@theme_bg_color, 1.02);
-}
-
-.photos-dropdown.frame {
- padding: 6px;
- border-width: 0 1px 1px 1px;
- border-style: solid;
- border-radius: 0 0 5px 5px;
-}
-
-.photos-dropdown .view.radio,
-.photos-dropdown .view.radio:focus,
-.photos-dropdown .view.radio:selected {
- background-image: none;
- background-color: alpha(@theme_base_color, 0.0);
-}
-
-.photos-dropdown .view.radio:active,
-.photos-dropdown .view.radio:active:focus,
-.photos-dropdown .view.radio:active:hover {
- background-image: url("sidebar-radio-checked.svg");
-}
-
-.photos-dropdown .view.radio:hover {
- background-image: url("sidebar-radio-prelight.svg");
-}
-
-.photos-dropdown .view.radio:active:selected,
-.photos-dropdown .view.radio:active:selected:focus {
- background-image: url("sidebar-radio-selected.svg");
-}
-
-.photos-dropdown .view.radio:selected:hover,
-.photos-dropdown .view.radio:selected:focus {
- background-image: url("sidebar-radio-selected-prelight.svg");
-}
-
.photos-fade-in {
opacity: 1.0;
transition: opacity 0.2s ease-out;
diff --git a/data/Makefile.am b/data/Makefile.am
index 788bc29..7914453 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -30,10 +30,6 @@ EXTRA_DIST = \
$(service_in_files) \
Adwaita.css \
dnd-counter.svg \
- sidebar-radio-checked.svg \
- sidebar-radio-prelight.svg \
- sidebar-radio-selected.svg \
- sidebar-radio-selected-prelight.svg \
vignette.png \
$(NULL)
diff --git a/src/photos-dropdown.c b/src/photos-dropdown.c
index 77fa0d5..f6f4cbf 100644
--- a/src/photos-dropdown.c
+++ b/src/photos-dropdown.c
@@ -99,7 +99,6 @@ static void
photos_dropdown_init (PhotosDropdown *self)
{
GApplication *app;
- GtkStyleContext *context;
PhotosSearchContextState *state;
app = g_application_get_default ();
@@ -118,8 +117,6 @@ photos_dropdown_init (PhotosDropdown *self)
photos_dropdown_add_manager (self, self->srch_typ_mngr);
photos_dropdown_add_manager (self, self->srch_mtch_mngr);
- context = gtk_widget_get_style_context (GTK_WIDGET (self));
- gtk_style_context_add_class (context, "photos-dropdown");
gtk_widget_show_all (GTK_WIDGET (self->grid));
}
diff --git a/src/photos.gresource.xml b/src/photos.gresource.xml
index b3d8815..76123fe 100644
--- a/src/photos.gresource.xml
+++ b/src/photos.gresource.xml
@@ -28,10 +28,6 @@
<file alias="selection-menu.ui" preprocess="xml-stripblanks"
compressed="true">photos-selection-menu.ui</file>
<file alias="selection-toolbar.ui" preprocess="xml-stripblanks"
compressed="true">photos-selection-toolbar.ui</file>
<file alias="share-dialog.ui" preprocess="xml-stripblanks"
compressed="true">photos-share-dialog.ui</file>
- <file alias="sidebar-radio-checked.svg" preprocess="to-pixdata">../data/sidebar-radio-checked.svg</file>
- <file alias="sidebar-radio-prelight.svg"
preprocess="to-pixdata">../data/sidebar-radio-prelight.svg</file>
- <file alias="sidebar-radio-selected.svg"
preprocess="to-pixdata">../data/sidebar-radio-selected.svg</file>
- <file alias="sidebar-radio-selected-prelight.svg"
preprocess="to-pixdata">../data/sidebar-radio-selected-prelight.svg</file>
</gresource>
<gresource prefix="/org/gnome/Photos/gtk">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]