[nautilus/wip/csoriano/progress_dialog: 15/16] nautilus-progress-info-widget: Make it more Gnome3
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/csoriano/progress_dialog: 15/16] nautilus-progress-info-widget: Make it more Gnome3
- Date: Wed, 11 Feb 2015 11:43:04 +0000 (UTC)
commit 34b45d27923d45d2a62dd9c2dfd83c5d64cb23ea
Author: Carlos Soriano <csoriano gnome org>
Date: Mon Feb 9 10:37:52 2015 +0100
nautilus-progress-info-widget: Make it more Gnome3
Change design
src/nautilus-progress-info-widget.c | 8 ++++++++
src/nautilus-progress-info-widget.xml | 8 ++++++--
2 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-progress-info-widget.c b/src/nautilus-progress-info-widget.c
index 7a96842..f31bc2a 100644
--- a/src/nautilus-progress-info-widget.c
+++ b/src/nautilus-progress-info-widget.c
@@ -155,6 +155,7 @@ nautilus_progress_info_widget_class_init (NautilusProgressInfoWidgetClass *klass
{
GObjectClass *oclass;
GtkWidgetClass *widget_class;
+ GtkCssProvider *provider;
widget_class = GTK_WIDGET_CLASS (klass);
oclass = G_OBJECT_CLASS (klass);
@@ -162,6 +163,13 @@ nautilus_progress_info_widget_class_init (NautilusProgressInfoWidgetClass *klass
oclass->dispose = nautilus_progress_info_widget_dispose;
oclass->constructed = nautilus_progress_info_widget_constructed;
+ provider = gtk_css_provider_new ();
+ gtk_css_provider_load_from_data (provider,
+ ".circular-button { border-radius: 20px; outline-radius: 20px; }",
-1, NULL);
+ gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
+ GTK_STYLE_PROVIDER (provider),
+ GTK_STYLE_PROVIDER_PRIORITY_USER);
+ g_object_unref (provider);
properties[PROP_INFO] =
g_param_spec_object ("info",
"NautilusProgressInfo",
diff --git a/src/nautilus-progress-info-widget.xml b/src/nautilus-progress-info-widget.xml
index c2ae770..2551f32 100644
--- a/src/nautilus-progress-info-widget.xml
+++ b/src/nautilus-progress-info-widget.xml
@@ -14,7 +14,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="width-request">500</property>
+ <property name="width-request">400</property>
<property name="wrap">True</property>
<property name="wrap-mode">word-char</property>
</object>
@@ -46,9 +46,10 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
- <property name="margin_start">10</property>
+ <property name="margin_start">20</property>
<style>
<class name="image-button"/>
+ <class name="circular-button"/>
</style>
<child>
<object class="GtkImage" id="cancel_icon">
@@ -81,6 +82,9 @@
<property name="xalign">0</property>
<property name="wrap">True</property>
<property name="wrap-mode">word-char</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
</object>
<packing>
<property name="expand">False</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]