~ubuntu-branches/ubuntu/trusty/gtk2-engines-oxygen/trusty

« back to all changes in this revision

Viewing changes to src/animations/oxygenanimations.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-07-20 15:38:45 UTC
  • mfrom: (1.1.19)
  • Revision ID: package-import@ubuntu.com-20120720153845-57jzms7fq759z9lg
Tags: 1.3.0-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
254
254
        gdk_window_get_origin( gtk_widget_get_window( combobox ), &targetX, &dummy );
255
255
 
256
256
        const GtkAllocation comboAllocation( Gtk::gtk_widget_get_allocation( combobox ) );
257
 
        gtk_window_move( window, targetX + comboAllocation.x + 3, y );
 
257
        int uglyShadowWidth=!Gtk::gdk_default_screen_is_composited();
 
258
        gtk_window_move( window, targetX + comboAllocation.x + 3 - uglyShadowWidth, y );
258
259
 
259
260
        const GtkAllocation widgetAllocation( Gtk::gtk_widget_get_allocation( widget ) );
260
 
        gtk_widget_set_size_request( widget, comboAllocation.width - 6, widgetAllocation.height );
 
261
        gtk_widget_set_size_request( widget, comboAllocation.width - 6 + 2*uglyShadowWidth, widgetAllocation.height );
261
262
        #endif
262
263
 
263
264
        return TRUE;
280
281
        Animations& animations( *static_cast<Animations*>(data) );
281
282
        if( !animations.innerShadowsEnabled() ) return TRUE;
282
283
 
283
 
        if( Gtk::gtk_combobox_is_tree_view( widget ) ) return TRUE;
284
284
        if( Gtk::g_object_is_a( G_OBJECT( widget ), "SwtFixed" ) ) return TRUE;
285
285
 
286
286
        GtkWidget* parent(gtk_widget_get_parent(widget));