openbsd-ports/x11/gnome/gdlmm/patches/patch-gdl_src_dockitem_ccg

32 lines
1.4 KiB
Plaintext

$OpenBSD: patch-gdl_src_dockitem_ccg,v 1.1 2012/12/07 08:13:52 ajacoutot Exp $
From 64fc453594aa87a95cf449d7fbd76b067e994a4f Mon Sep 17 00:00:00 2001
From: Alban Browaeys <prahal@yahoo.com>
Date: Mon, 12 Nov 2012 05:38:39 +0000
Subject: Upgrade to gdl 3.6.
--- gdl/src/dockitem.ccg.orig Wed Nov 23 18:40:16 2011
+++ gdl/src/dockitem.ccg Fri Dec 7 08:48:30 2012
@@ -26,9 +26,7 @@ DockItem::DockItem(const Glib::ustring& name, const Gl
_CONSTRUCT("name", name.c_str(), "long-name", long_name.c_str(), "behavior", static_cast<GdlDockItemBehavior>(behavior))
{
GdlDockItem* item = this->gobj();
- int flags = GDL_DOCK_OBJECT(item)->flags;
- flags &= ~GDL_DOCK_AUTOMATIC;
- GDL_DOCK_OBJECT(item)->flags = static_cast<GdlDockObjectFlags>(flags);
+ gdl_dock_object_set_manual(GDL_DOCK_OBJECT(item));
gdl_dock_item_set_tablabel(item, gtk_label_new(long_name.c_str()));
}
@@ -37,9 +35,7 @@ DockItem::DockItem(const Glib::ustring& name, const Gl
_CONSTRUCT("name", name.c_str(), "long-name", long_name.c_str(), "stock-id", stock_id.get_c_str(), "behavior", static_cast<GdlDockItemBehavior>(behavior))
{
GdlDockItem* item = this->gobj();
- int flags = GDL_DOCK_OBJECT(item)->flags;
- flags &= ~GDL_DOCK_AUTOMATIC;
- GDL_DOCK_OBJECT(item)->flags = static_cast<GdlDockObjectFlags>(flags);
+ gdl_dock_object_set_manual(GDL_DOCK_OBJECT(item));
gdl_dock_item_set_tablabel(item, gtk_label_new(long_name.c_str()));
}