fix a few minor GTK3 things

This commit is contained in:
Yann Leboulanger 2015-11-23 20:45:21 +01:00
parent 1b94427cc2
commit 1e01ca81c6
5 changed files with 6 additions and 5 deletions

View File

@ -192,6 +192,7 @@
<object class="GtkGrid" id="grid1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">6</property>
<property name="row_spacing">6</property>
<property name="column_spacing">6</property>
<child>
@ -586,9 +587,10 @@
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="xalign">0.5</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_sync_logs_with_server_checkbutton_toggled"/>
<signal name="toggled" handler="on_sync_logs_with_server_checkbutton_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>

View File

@ -71,7 +71,6 @@
<object class="GtkBox" id="vbox112">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_left">12</property>
<property name="border_width">6</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>

View File

@ -459,7 +459,7 @@ if pid_alive():
pixs.append(pix)
if pixs:
# set the icon to all windows
Gtk.Window.set_default_icon_list(*pixs)
Gtk.Window.set_default_icon_list(pixs)
pritext = _('Gajim is already running')
sectext = _('Another instance of Gajim seems to be running\nRun anyway?')
dialog = dialogs.YesNoDialog(pritext, sectext)

View File

@ -139,7 +139,7 @@ def popup_emoticons_under_button(menu, button, parent_win):
x = window_x + button_x
y = window_y + button_y
menu_height = menu.size_request().height
menu_height = menu.get_preferred_size()[0].height
## should we pop down or up?
if (y + alloc.height + menu_height < Gdk.Screen.height()):

View File

@ -121,7 +121,7 @@ class HistoryManager:
pixs.append(pix)
if pixs:
# set the icon to all windows
Gtk.Window.set_default_icon_list(*pixs)
Gtk.Window.set_default_icon_list(pixs)
if not os.path.exists(LOG_DB_PATH):
dialogs.ErrorDialog(_('Cannot find history logs database'),