~ubuntu-branches/ubuntu/lucid/gtk2-engines-murrine/lucid

« back to all changes in this revision

Viewing changes to src/support.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche, Didier Roche, Khashayar Naderehvandi
  • Date: 2009-03-18 21:48:08 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090318214808-0n7qxpyukzd2ru8r
Tags: 0.90.2-0ubuntu1
[Didier Roche]
* New upstream release (LP: #344154)
  - High roundness values are now correctly limited.
  - Use focus_color in draw_entry if the theme uses it.
  - Removed shadows from GtkCombo and GtkComboBoxEntry.
  - Code polishing and bugfixing.
  - Fixed a crash when using focus_color.
  - Now focus_color and scrollbar_color accept symbolic colors.
* debian/control:
  - add Vcs-Bzr tag
  - bump libgtk2.0-dev to 2.12.0
  - update Homepage field
* Rewrite debian/watch to get murrine from its new location

[Khashayar Naderehvandi]
* debian/control: remove quilt dependency
* debian/rules: remove "patch: patch-stamp" and all patch related stuff

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Murrine theme engine
2
 
 * Copyright (C) 2007 Andrea Cimitan
 
2
 * Copyright (C) 2006-2007-2008-2009 Andrea Cimitan
3
3
 *
4
4
 * This library is free software; you can redistribute it and/or
5
5
 * modify it under the terms of the GNU Library General Public
34
34
        return dir;
35
35
}
36
36
 
37
 
void murrine_gtk_treeview_get_header_index (GtkTreeView *tv, GtkWidget *header,
38
 
                                            gint *column_index, gint *columns,
39
 
                                            gboolean *resizable)
 
37
void
 
38
murrine_gtk_treeview_get_header_index (GtkTreeView *tv, GtkWidget *header,
 
39
                                       gint *column_index, gint *columns,
 
40
                                       gboolean *resizable)
40
41
{
41
42
        GList *list, *list_start;
42
43
        *column_index = *columns = 0;
57
58
        g_list_free (list_start);
58
59
}
59
60
 
60
 
void murrine_gtk_clist_get_header_index (GtkCList *clist, GtkWidget *button,
61
 
                                         gint *column_index, gint *columns)
 
61
void
 
62
murrine_gtk_clist_get_header_index (GtkCList *clist, GtkWidget *button,
 
63
                                    gint *column_index, gint *columns)
62
64
{
63
65
        int i;
64
66
        *columns = clist->columns;
105
107
                *indicator_spacing = default_option_indicator_spacing;
106
108
}
107
109
 
108
 
GtkWidget *murrine_special_get_ancestor(GtkWidget * widget, GType widget_type)
 
110
GtkWidget* 
 
111
murrine_special_get_ancestor (GtkWidget *widget, GType widget_type)
109
112
{
110
113
        g_return_val_if_fail(GTK_IS_WIDGET(widget), NULL);
111
114
 
122
125
        return widget;
123
126
}
124
127
 
125
 
GtkWidget *murrine_get_parent_window (GtkWidget *widget)
 
128
GtkWidget*
 
129
murrine_get_parent_window (GtkWidget *widget)
126
130
{
127
131
        GtkWidget *parent = widget->parent;
128
132
 
132
136
        return parent;
133
137
}
134
138
 
135
 
GdkColor *murrine_get_parent_bgcolor (GtkWidget *widget)
 
139
GdkColor*
 
140
murrine_get_parent_bgcolor (GtkWidget *widget)
136
141
{
137
142
        GtkWidget *parent = murrine_get_parent_window (widget);
138
143
 
175
180
                return TRUE;
176
181
}
177
182
 
178
 
GtkWidget *
179
 
murrine_find_combo_box_widget (GtkWidget * widget)
 
183
GtkWidget*
 
184
murrine_find_combo_box_widget (GtkWidget *widget)
180
185
{
181
186
        GtkWidget *result = NULL;
182
187
 
192
197
}
193
198
 
194
199
gboolean
195
 
murrine_is_combo_box (GtkWidget * widget)
 
200
murrine_is_combo_box (GtkWidget *widget)
196
201
{
197
202
        return (murrine_find_combo_box_widget(widget) != NULL);
198
203
}
275
280
 
276
281
        if (GTK_RANGE (widget)->has_stepper_d)
277
282
                steppers |= MRN_STEPPER_D;
 
283
 
 
284
        return steppers;
278
285
}
279
286
 
280
287
MurrineJunction
281
 
murrine_scrollbar_get_junction (GtkWidget    *widget)
 
288
murrine_scrollbar_get_junction (GtkWidget *widget)
282
289
{
283
290
        GtkAdjustment *adj;
284
291
        MurrineJunction junction = MRN_JUNCTION_NONE;