~muktupavels/compiz/add-gwd-application

« back to all changes in this revision

Viewing changes to gtk/window-decorator/events.c

  • Committer: Alberts Muktupāvels
  • Date: 2016-05-20 12:55:39 UTC
  • Revision ID: alberts.muktupavels@gmail.com-20160520125539-poncwl2ok9v6br1c
Remove GWDSettings as global variable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
                     int        max,
110
110
                     char       *tooltip)
111
111
{
 
112
    GWDSettings *settings = gwd_theme_get_settings (gwd_theme);
112
113
    decor_t *d = g_object_get_data (G_OBJECT (win), "decor");
113
114
    guint   state = d->button_states[button];
114
115
    gboolean use_tooltips = FALSE;
457
458
handle_mouse_wheel_title_event (WnckWindow   *win,
458
459
                                unsigned int button)
459
460
{
 
461
    GWDSettings *settings = gwd_theme_get_settings (gwd_theme);
460
462
    gint wheel_action = WHEEL_ACTION_NONE;
461
463
 
462
464
    g_object_get (settings, "mouse-wheel-action", &wheel_action, NULL);
484
486
             decor_event      *gtkwd_event,
485
487
             decor_event_type gtkwd_type)
486
488
{
 
489
    GWDSettings *settings = gwd_theme_get_settings (gwd_theme);
487
490
    static Window last_button_xwindow = None;
488
491
    static Time   last_button_time = 0;
489
492
    gint          titlebar_action = 0;
559
562
                    decor_event      *gtkwd_event,
560
563
                    decor_event_type gtkwd_type)
561
564
{
 
565
    GWDSettings *settings = gwd_theme_get_settings (gwd_theme);
562
566
    gint    titlebar_action = 0;
563
567
    decor_t *d = g_object_get_data (G_OBJECT (win), "decor");
564
568