[glade/glade-3-8] Made a few ui fixes, like removing unnecessary shadows in the workspace and property editor. Also re
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/glade-3-8] Made a few ui fixes, like removing unnecessary shadows in the workspace and property editor. Also re
- Date: Thu, 5 Sep 2013 15:27:54 +0000 (UTC)
commit db43d1c096ba4a481905c5fafd91ead2336c3bb5
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date: Thu Sep 5 12:23:47 2013 -0300
Made a few ui fixes, like removing unnecessary shadows in the workspace and property editor.
Also replaces old atk icons with a new one.
data/icons/atk.png | Bin 681 -> 914 bytes
gladeui/glade-design-view.c | 2 +-
gladeui/glade-editor.c | 15 ++++++---------
gladeui/glade-signal-editor.c | 3 +--
4 files changed, 8 insertions(+), 12 deletions(-)
---
diff --git a/data/icons/atk.png b/data/icons/atk.png
index cde5ff4..2c1ace5 100644
Binary files a/data/icons/atk.png and b/data/icons/atk.png differ
diff --git a/gladeui/glade-design-view.c b/gladeui/glade-design-view.c
index 006b839..6660db2 100644
--- a/gladeui/glade-design-view.c
+++ b/gladeui/glade-design-view.c
@@ -166,7 +166,7 @@ glade_design_view_init (GladeDesignView *view)
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (view->priv->scrolled_window),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (view->priv->scrolled_window),
- GTK_SHADOW_IN);
+ GTK_SHADOW_NONE);
viewport = gtk_viewport_new (NULL, NULL);
gtk_viewport_set_shadow_type (GTK_VIEWPORT (viewport), GTK_SHADOW_NONE);
diff --git a/gladeui/glade-editor.c b/gladeui/glade-editor.c
index 4d56ca8..619c23c 100644
--- a/gladeui/glade-editor.c
+++ b/gladeui/glade-editor.c
@@ -191,8 +191,6 @@ glade_editor_notebook_page (GladeEditor *editor, const gchar *name)
GtkWidget *alignment;
GtkWidget *sw;
GtkWidget *label_widget;
- GtkWidget *image;
- static gchar *path;
static gint page = 0;
/* alignment is needed to ensure property labels have some padding on the left */
@@ -202,14 +200,13 @@ glade_editor_notebook_page (GladeEditor *editor, const gchar *name)
/* construct tab label widget */
if (strcmp (name, _("Accessibility")) == 0)
{
- path = g_build_filename (glade_app_get_pixmaps_dir (), "atk.png", NULL);
- image = gtk_image_new_from_file (path);
- label_widget = gtk_event_box_new ();
- gtk_container_add (GTK_CONTAINER (label_widget), image);
+ gchar *path = g_build_filename (glade_app_get_pixmaps_dir (), "atk.png", NULL);
+
+ label_widget = gtk_image_new_from_file (path);
gtk_widget_show (label_widget);
- gtk_widget_show (image);
gtk_widget_set_tooltip_text (label_widget, name);
+ g_free (path);
}
else
{
@@ -222,7 +219,6 @@ glade_editor_notebook_page (GladeEditor *editor, const gchar *name)
gtk_alignment_set (GTK_ALIGNMENT (alignment), 0.5, 0.5, 1, 1);
gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 0, 0);
- gtk_container_set_border_width (GTK_CONTAINER (alignment), 6);
gtk_notebook_insert_page (GTK_NOTEBOOK (editor->notebook), alignment,
label_widget, page++);
}
@@ -234,7 +230,8 @@ glade_editor_notebook_page (GladeEditor *editor, const gchar *name)
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (sw),
GTK_WIDGET (alignment));
- gtk_container_set_border_width (GTK_CONTAINER (sw), 6);
+ gtk_viewport_set_shadow_type (GTK_VIEWPORT (gtk_bin_get_child (GTK_BIN(sw))),
+ GTK_SHADOW_NONE);
gtk_notebook_insert_page (GTK_NOTEBOOK (editor->notebook), sw,
label_widget, page++);
diff --git a/gladeui/glade-signal-editor.c b/gladeui/glade-signal-editor.c
index d75ce4b..496fcb4 100644
--- a/gladeui/glade-signal-editor.c
+++ b/gladeui/glade-signal-editor.c
@@ -98,7 +98,6 @@ struct _GladeSignalEditorPrivate
GtkWidget *signals_list;
GtkTreeStore *model;
- GtkTreeView *tree_view;
GtkTreeModel *handler_store;
GtkTreeModel *userdata_store;
@@ -1124,7 +1123,7 @@ glade_signal_editor_constructor (GType type,
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scroll),
- GTK_SHADOW_IN);
+ GTK_SHADOW_NONE);
g_signal_emit_by_name (glade_app_get(), "signal-editor-created", retval);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]