murrine r160 - in trunk: . src
- From: acimitan svn gnome org
- To: svn-commits-list gnome org
- Subject: murrine r160 - in trunk: . src
- Date: Wed, 18 Mar 2009 10:44:30 +0000 (UTC)
Author: acimitan
Date: Wed Mar 18 10:44:30 2009
New Revision: 160
URL: http://svn.gnome.org/viewvc/murrine?rev=160&view=rev
Log:
2009-03-18 Andrea Cimitan <andrea cimitan gmail com>
* src/murrine_style.c (murrine_style_draw_focus):
* src/support.c (murrine_gtk_treeview_get_header_index),
(murrine_gtk_clist_get_header_index),
(murrine_special_get_ancestor), (murrine_get_parent_window),
(murrine_get_parent_bgcolor), (murrine_find_combo_box_widget),
(murrine_is_combo_box):
Fixed the focus on the gnome-panel.
Modified:
trunk/ChangeLog
trunk/src/murrine_style.c
trunk/src/support.c
Modified: trunk/src/murrine_style.c
==============================================================================
--- trunk/src/murrine_style.c (original)
+++ trunk/src/murrine_style.c Wed Mar 18 10:44:30 2009
@@ -2051,13 +2051,9 @@
else
focus.type = MRN_FOCUS_BUTTON_FLAT;
- /* This is a workaround for the bogus focus handling that
- * clearlooks has currently.
- * I truely dislike putting it here, but I guess it is better
- * then having such a visible bug. It should be removed in the
- * next unstable release cycle. -- Benjamin
- if (ge_object_is_a (G_OBJECT (widget), "ButtonWidget"))
- focus.type = MRN_FOCUS_LABEL; */
+ /* Workaround for the panel. */
+ if (murrine_object_is_a (G_OBJECT (widget), "ButtonWidget"))
+ focus.type = MRN_FOCUS_LABEL;
}
}
else if (detail && g_str_has_prefix (detail, "treeview"))
Modified: trunk/src/support.c
==============================================================================
--- trunk/src/support.c (original)
+++ trunk/src/support.c Wed Mar 18 10:44:30 2009
@@ -34,9 +34,10 @@
return dir;
}
-void murrine_gtk_treeview_get_header_index (GtkTreeView *tv, GtkWidget *header,
- gint *column_index, gint *columns,
- gboolean *resizable)
+void
+murrine_gtk_treeview_get_header_index (GtkTreeView *tv, GtkWidget *header,
+ gint *column_index, gint *columns,
+ gboolean *resizable)
{
GList *list, *list_start;
*column_index = *columns = 0;
@@ -57,8 +58,9 @@
g_list_free (list_start);
}
-void murrine_gtk_clist_get_header_index (GtkCList *clist, GtkWidget *button,
- gint *column_index, gint *columns)
+void
+murrine_gtk_clist_get_header_index (GtkCList *clist, GtkWidget *button,
+ gint *column_index, gint *columns)
{
int i;
*columns = clist->columns;
@@ -105,7 +107,8 @@
*indicator_spacing = default_option_indicator_spacing;
}
-GtkWidget *murrine_special_get_ancestor(GtkWidget * widget, GType widget_type)
+GtkWidget*
+murrine_special_get_ancestor (GtkWidget *widget, GType widget_type)
{
g_return_val_if_fail(GTK_IS_WIDGET(widget), NULL);
@@ -122,7 +125,8 @@
return widget;
}
-GtkWidget *murrine_get_parent_window (GtkWidget *widget)
+GtkWidget*
+murrine_get_parent_window (GtkWidget *widget)
{
GtkWidget *parent = widget->parent;
@@ -132,7 +136,8 @@
return parent;
}
-GdkColor *murrine_get_parent_bgcolor (GtkWidget *widget)
+GdkColor*
+murrine_get_parent_bgcolor (GtkWidget *widget)
{
GtkWidget *parent = murrine_get_parent_window (widget);
@@ -175,8 +180,8 @@
return TRUE;
}
-GtkWidget *
-murrine_find_combo_box_widget (GtkWidget * widget)
+GtkWidget*
+murrine_find_combo_box_widget (GtkWidget *widget)
{
GtkWidget *result = NULL;
@@ -192,7 +197,7 @@
}
gboolean
-murrine_is_combo_box (GtkWidget * widget)
+murrine_is_combo_box (GtkWidget *widget)
{
return (murrine_find_combo_box_widget(widget) != NULL);
}
@@ -280,7 +285,7 @@
}
MurrineJunction
-murrine_scrollbar_get_junction (GtkWidget *widget)
+murrine_scrollbar_get_junction (GtkWidget *widget)
{
GtkAdjustment *adj;
MurrineJunction junction = MRN_JUNCTION_NONE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]