[Alexei Sorokin] Recent: Fix Gtk warnings
This commit is contained in:
parent
419136c89a
commit
272a9079e4
@ -136,34 +136,21 @@ class pluginclass:
|
|||||||
AButton.set_size_request( 200, -1 )
|
AButton.set_size_request( 200, -1 )
|
||||||
AButton.set_relief( Gtk.ReliefStyle.NONE )
|
AButton.set_relief( Gtk.ReliefStyle.NONE )
|
||||||
AButton.connect( "clicked", self.callback, Name )
|
AButton.connect( "clicked", self.callback, Name )
|
||||||
|
AButton.show()
|
||||||
|
|
||||||
Align1 = Gtk.Alignment()
|
Box1 = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5)
|
||||||
Align1.set( 0, 0.5, 0, 0)
|
|
||||||
Align1.set_padding( 0, 0, 0, 0 )
|
|
||||||
HBox1 = Gtk.Box( orientation=Gtk.Orientation.HORIZONTAL, spacing=5 )
|
|
||||||
VBox1 = Gtk.Box( orientation=Gtk.Orientation.VERTICAL, spacing=2 )
|
|
||||||
|
|
||||||
VBox1.show()
|
|
||||||
|
|
||||||
req = AButton.size_request()
|
|
||||||
|
|
||||||
Label1 = Gtk.Label( DispName )
|
|
||||||
Label1.set_size_request( req.width-20, -1 )
|
|
||||||
Label1.set_ellipsize( Pango.EllipsizeMode.END )
|
|
||||||
Label1.show()
|
|
||||||
VBox1.add( Label1 )
|
|
||||||
|
|
||||||
ButtonIcon = Gtk.Image()
|
ButtonIcon = Gtk.Image()
|
||||||
|
ButtonIcon.set_size_request(20, -1)
|
||||||
ButtonIcon.set_from_pixbuf(RecentImage)
|
ButtonIcon.set_from_pixbuf(RecentImage)
|
||||||
HBox1.add( ButtonIcon )
|
Box1.add(ButtonIcon)
|
||||||
|
|
||||||
ButtonIcon.show()
|
Label1 = Gtk.Label( DispName )
|
||||||
HBox1.add( VBox1 )
|
Label1.set_ellipsize( Pango.EllipsizeMode.END )
|
||||||
HBox1.show()
|
Box1.add( Label1 )
|
||||||
Align1.add( HBox1 )
|
|
||||||
Align1.show()
|
AButton.add( Box1 )
|
||||||
AButton.add( Align1 )
|
AButton.show_all()
|
||||||
AButton.show()
|
|
||||||
|
|
||||||
self.recentBox.pack_start( AButton, False, True, 0 )
|
self.recentBox.pack_start( AButton, False, True, 0 )
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user