After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 662603 - Don't use fixed height
Don't use fixed height
Status: RESOLVED DUPLICATE of bug 589385
Product: alacarte
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Alacarte Maintainer(s)
Alacarte Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2011-10-24 13:12 UTC by jgv
Modified: 2012-06-29 14:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jgv 2011-10-24 13:12:17 UTC
In the gnome3 distribution of Alacarte the height of each menu item is limited. This is an issue when bigger fonts are used. After a prior bug report last year a fix was provided for gnome2, though apparently not implemented.
Comment 1 jgv 2011-10-28 09:08:15 UTC
See the fix for bug 589385
Comment 2 jgv 2011-12-02 16:05:43 UTC
It is quit simple folks!
Just delete two lines in MainWindow.py

#cell.set_fixed_size(-1, 25)
#column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)

Many users will be greatfull
Comment 3 Jasper St. Pierre (not reading bugmail) 2012-06-01 05:19:03 UTC
These lines are not there anymore. Assuming fixed upstream.
Comment 4 jgv 2012-06-29 07:57:54 UTC
Assuming something is not a correct response. If you are convinced of this fix, please let me know in what version of Alacarte and what release of Gnome it was distributed. 

some lines from Gnome 3.4: /Alacarte/mainwindow.py

def setupMenuTree(self):
		self.menu_store = gtk.TreeStore(gtk.gdk.Pixbuf, str, object)
		menus = self.tree.get_object('menu_tree')
		column = gtk.TreeViewColumn(_('Name'))
		column.set_spacing(4)
		cell = gtk.CellRendererPixbuf()
		column.pack_start(cell, False)
		column.set_attributes(cell, pixbuf=0)
		cell = gtk.CellRendererText()
		#cell.set_fixed_size(-1, 25)
		column.pack_start(cell, True)
		column.set_attributes(cell, markup=1)
		#column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)
		menus.append_column(column)
		menus.enable_model_drag_source(gtk.gdk.BUTTON1_MASK, self.dnd_menus,

def setupItemTree(self):
		items = self.tree.get_object('item_tree')
		column = gtk.TreeViewColumn(_('Show'))
		cell = gtk.CellRendererToggle()
		cell.connect('toggled', self.on_item_tree_show_toggled)
		column.pack_start(cell, True)
		column.set_attributes(cell, active=0)
		#hide toggle for separators
		column.set_cell_data_func(cell, self._cell_data_toggle_func)
		items.append_column(column)
		column = gtk.TreeViewColumn(_('Item'))
		column.set_spacing(4)
		cell = gtk.CellRendererPixbuf()
		column.pack_start(cell, False)
		column.set_attributes(cell, pixbuf=1)
		cell = gtk.CellRendererText()
		#cell.set_fixed_size(-1, 25)
		column.pack_start(cell, True)
		column.set_attributes(cell, markup=2)
		items.append_column(column)
		self.item_store = gtk.ListStore(bool, gtk.gdk.Pixbuf, str, object)
		items.set_model(self.item_store)
		items.enable_model_drag_source(gtk.gdk.BUTTON1_MASK, self.dnd_items, gtk.gdk.ACTION_COPY)
		items.enable_model_drag_dest(self.dnd_items, gtk.gdk.ACTION_PRIVATE)
Comment 5 Jasper St. Pierre (not reading bugmail) 2012-06-29 14:18:10 UTC
It was fixed as a part of a duplicate of this bug: https://bugzilla.gnome.org/show_bug.cgi?id=589385

It should be in alacarte 3.5.3, which I released a few days ago.

*** This bug has been marked as a duplicate of bug 589385 ***