[gnome-contacts] Rename all contacts custom css classes to contacts-*
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Rename all contacts custom css classes to contacts-*
- Date: Thu, 19 Jan 2012 13:43:25 +0000 (UTC)
commit 223a3aa8edb8c8423931adc5725003b54fdf2324
Author: Alexander Larsson <alexl redhat com>
Date: Thu Jan 19 14:43:02 2012 +0100
Rename all contacts custom css classes to contacts-*
data/gnome-contacts.css | 24 ++++++++++++------------
src/contacts-avatar-menu.vala | 2 +-
src/contacts-contact-frame.vala | 2 +-
src/contacts-contact-pane.vala | 12 ++++++------
src/contacts-link-dialog.vala | 2 +-
src/contacts-types.vala | 4 ++--
src/gtk-notification.c | 2 +-
7 files changed, 24 insertions(+), 24 deletions(-)
---
diff --git a/data/gnome-contacts.css b/data/gnome-contacts.css
index 7067cfb..e68bf35 100644
--- a/data/gnome-contacts.css
+++ b/data/gnome-contacts.css
@@ -39,12 +39,12 @@ ContactsWindow .sidebar.view {
background-color: #ebebeb;
}
-.contact-button:active {
+.contacts-button:active {
border-color: #000000;
border-image: none;
}
-.contact-entry {
+.contacts-entry {
box-shadow: none;
border-image: none;
border-width: 1;
@@ -55,27 +55,27 @@ ContactsWindow .sidebar.view {
background-color: #ffffff;
}
-.contact-entry:selected,
-.contact-entry:selected:focus {
+.contacts-entry:selected,
+.contacts-entry:selected:focus {
background-color: @theme_selected_bg_color;
color: @theme_selected_fg_color;
}
-.contact-entry.contact-postal-entry {
+.contacts-entry.contacts-postal-entry {
border-radius: 0 0 0 0;
border-width: 1 1 0 1;
}
-.contact-entry.contact-postal-entry:nth-child(first) {
+.contacts-entry.contacts-postal-entry:nth-child(first) {
border-radius: 4 4 0 0;
}
-.contact-entry.contact-postal-entry:nth-child(last) {
+.contacts-entry.contacts-postal-entry:nth-child(last) {
border-radius: 0 0 4 4;
border-width: 1 1 1 1;
}
-.contact-combo .button {
+.contacts-combo .button {
border-image: none;
border-width: 1;
border-style: solid;
@@ -84,7 +84,7 @@ ContactsWindow .sidebar.view {
background-color: #ffffff;
}
-.contact-frame-button {
+.contacts-frame-button {
padding: 0;
border-image: none;
border-width: 0;
@@ -97,16 +97,16 @@ ContactsWindow .sidebar.view {
-GtkButton-child-displacement-y: 0;
}
-.contact-frame-button:active {
+.contacts-frame-button:active {
background-color: #2e3436;
}
-.contact-frame-menu {
+.contacts-frame-menu {
background-color: #2e3436;
color: #ffffff;
}
-.notification {
+.contacts-notification {
border-style: solid;
border-color: #949486;
border-width: 0 1 1 1;
diff --git a/src/contacts-avatar-menu.vala b/src/contacts-avatar-menu.vala
index 52c69bf..b1b3a06 100644
--- a/src/contacts-avatar-menu.vala
+++ b/src/contacts-avatar-menu.vala
@@ -141,7 +141,7 @@ public class Contacts.AvatarMenu : Gtk.Menu {
public AvatarMenu (Contact contact) {
thumbnail_factory = new Gnome.DesktopThumbnailFactory (Gnome.ThumbnailSize.NORMAL);
- this.get_style_context ().add_class ("contact-frame-menu");
+ this.get_style_context ().add_class ("contacts-frame-menu");
int x = 0;
int y = 0;
diff --git a/src/contacts-contact-frame.vala b/src/contacts-contact-frame.vala
index ae0c80b..0c4bc82 100644
--- a/src/contacts-contact-frame.vala
+++ b/src/contacts-contact-frame.vala
@@ -94,7 +94,7 @@ public class Contacts.ContactFrame : Frame {
var button = new ToggleButton ();
button.set_focus_on_click (false);
- button.get_style_context ().add_class ("contact-frame-button");
+ button.get_style_context ().add_class ("contacts-frame-button");
button.add (image);
button.set_mode (false);
this.add (button);
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 1a8df8b..e9a3c3a 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -277,7 +277,7 @@ public class Contacts.FieldRow : Contacts.Row {
public void pack_entry_detail_combo (string text, AbstractFieldDetails detail, TypeSet type_set, out Entry entry, out TypeCombo combo) {
entry = new Entry ();
- entry.get_style_context ().add_class ("contact-entry");
+ entry.get_style_context ().add_class ("contacts-entry");
entry.set_text (text);
entry.set_hexpand (true);
entry.set_halign (Align.FILL);
@@ -287,7 +287,7 @@ public class Contacts.FieldRow : Contacts.Row {
public Entry pack_entry (string s) {
var e = new Entry ();
- e.get_style_context ().add_class ("contact-entry");
+ e.get_style_context ().add_class ("contacts-entry");
e.set_text (s);
e.set_halign (Align.FILL);
pack (e);
@@ -883,7 +883,7 @@ class Contacts.BirthdayFieldRow : DataFieldRow {
combo.append_text (_("November"));
combo.append_text (_("December"));
combo.set_active (bday.get_month () - 1);
- combo.get_style_context ().add_class ("contact-combo");
+ combo.get_style_context ().add_class ("contacts-combo");
grid.add (combo);
year_spin = new SpinButton.with_range (1800, 3000, 1);
@@ -1048,7 +1048,7 @@ class Contacts.NoteFieldRow : DataFieldRow {
public override void pack_edit_widgets () {
text = new TextView ();
- text.get_style_context ().add_class ("contact-entry");
+ text.get_style_context ().add_class ("contacts-entry");
text.set_hexpand (true);
text.set_vexpand (true);
var scrolled = new ScrolledWindow (null, null);
@@ -1169,8 +1169,8 @@ class Contacts.AddressFieldRow : DataFieldRow {
if (postal_part != null)
entry[i].set_text (postal_part);
entry[i].set ("placeholder-text", Contact.postal_element_names[i]);
- entry[i].get_style_context ().add_class ("contact-entry");
- entry[i].get_style_context ().add_class ("contact-postal-entry");
+ entry[i].get_style_context ().add_class ("contacts-entry");
+ entry[i].get_style_context ().add_class ("contacts-postal-entry");
grid.add (entry[i]);
setup_entry_for_edit (entry[i], i == 0);
diff --git a/src/contacts-link-dialog.vala b/src/contacts-link-dialog.vala
index c0fe479..4c9e219 100644
--- a/src/contacts-link-dialog.vala
+++ b/src/contacts-link-dialog.vala
@@ -140,7 +140,7 @@ public class Contacts.LinkDialog : Dialog {
grid.attach (label, 0, 0, 1, 1);
var list_frame = new Frame (null);
- list_frame.get_style_context ().add_class ("contact-list-frame");
+ list_frame.get_style_context ().add_class ("contacts-list-frame");
grid.attach (list_frame, 0, 1, 1, 1);
var list_grid = new Grid ();
diff --git a/src/contacts-types.vala b/src/contacts-types.vala
index 537bea9..651ee7c 100644
--- a/src/contacts-types.vala
+++ b/src/contacts-types.vala
@@ -365,7 +365,7 @@ public class Contacts.TypeCombo : Grid {
this.type_set = type_set;
combo = new ComboBox.with_model (type_set.store);
- combo.get_style_context ().add_class ("contact-combo");
+ combo.get_style_context ().add_class ("contacts-combo");
combo.set_halign (Align.FILL);
combo.set_hexpand (true);
this.add (combo);
@@ -381,7 +381,7 @@ public class Contacts.TypeCombo : Grid {
});
entry = new Entry ();
- entry.get_style_context ().add_class ("contact-entry");
+ entry.get_style_context ().add_class ("contacts-entry");
entry.set_halign (Align.FILL);
entry.set_hexpand (true);
// Make the default entry small so we don't unnecessarily
diff --git a/src/gtk-notification.c b/src/gtk-notification.c
index 8f188d6..3064a9d 100644
--- a/src/gtk-notification.c
+++ b/src/gtk-notification.c
@@ -94,7 +94,7 @@ gtk_notification_init (GtkNotification *notification)
GtkNotificationPrivate *priv;
context = gtk_widget_get_style_context (GTK_WIDGET (notification));
- gtk_style_context_add_class (context, "notification");
+ gtk_style_context_add_class (context, "contacts-notification");
gtk_widget_set_halign (GTK_WIDGET (notification), GTK_ALIGN_CENTER);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]