Gtkmm-forge Digest, Vol 3, Issue 23



Send Gtkmm-forge mailing list submissions to
	gtkmm-forge lists sourceforge net

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/gtkmm-forge
or, via email, send a message with subject or body 'help' to
	gtkmm-forge-request lists sourceforge net

You can reach the person managing the list at
	gtkmm-forge-owner lists sourceforge net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gtkmm-forge digest..."


gtkmm-forge is the mailing list that receives gtkmm bug reports from bugzilla.  A daily digest is sent to gtkmm-main, to encourage people to help fixing the bugs. Do not try to unsubscribe gtkmm-forge from gtkmm-list.


Today's Topics:

   1. [Bug 352088] Typo in	Gtk::Button::get_image_position
      (gtkmm (bugzilla.gnome.org))
   2. [Bug 351810] C++ bindings for GtkBinding*
      (gtkmm (bugzilla.gnome.org))
   3. [Bug 351810] C++ bindings for GtkBinding*
      (gtkmm (bugzilla.gnome.org))


----------------------------------------------------------------------

Message: 1
Date: Mon, 21 Aug 2006 20:15:02 +0100 (BST)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 352088] Typo in
	Gtk::Button::get_image_position
To: gtkmm-forge lists sourceforge net
Message-ID: <20060821191502 564F86C4075 box gnome org>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=352088
 gtkmm | general | Ver: 2.10.x


jonner changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #4 from jonner  2006-08-21 19:14 UTC -------
Fix committed.  I've sent an email to release-team asking for somebody to roll
a new release.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



------------------------------

Message: 2
Date: Mon, 21 Aug 2006 20:16:49 +0100 (BST)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 351810] C++ bindings for GtkBinding*
To: gtkmm-forge lists sourceforge net
Message-ID: <20060821191649 622ED6C4088 box gnome org>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=351810
 gtkmm | general | Ver: unspecified


Paul Pogonyshev changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pogonyshev gmx net




------- Comment #3 from Paul Pogonyshev  2006-08-21 19:16 UTC -------
Here is an example from my program:

static void
gtk_goban_class_init (GtkGobanClass *class)
{
  static GtkUtilsBindingInfo navigation_bindings[] = {
    {GDK_Left,          0,      GOBAN_NAVIGATE_BACK},
    {GDK_Page_Up,       0,      GOBAN_NAVIGATE_BACK_FAST},
    {GDK_Right,         0,      GOBAN_NAVIGATE_FORWARD},
    {GDK_Page_Down,     0,      GOBAN_NAVIGATE_FORWARD_FAST},
    {GDK_Up,            0,      GOBAN_NAVIGATE_PREVIOUS_VARIATION},
    {GDK_Down,          0,      GOBAN_NAVIGATE_NEXT_VARIATION},
    {GDK_Home,          0,      GOBAN_NAVIGATE_ROOT},
    {GDK_End,           0,      GOBAN_NAVIGATE_VARIATION_END}
  };

  GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class);
  GtkBindingSet *binding_set;

  ...

  binding_set = gtk_binding_set_by_class (class);
  gtk_utils_add_similar_bindings (binding_set, "navigate", navigation_bindings,
                                  (sizeof navigation_bindings
                                   / sizeof (GtkUtilsBindingInfo)));
}

/* Elsewhere. */
void
gtk_utils_add_similar_bindings (GtkBindingSet *binding_set,
                                const gchar *signal_name,
                                GtkUtilsBindingInfo *bindings,
                                int num_bindings)
{
  int k;

  g_return_if_fail (binding_set);
  g_return_if_fail (signal_name);
  g_return_if_fail (bindings);
  g_return_if_fail (num_bindings > 0);

  for (k = 0; k < num_bindings; k++) {
    gtk_binding_entry_add_signal (binding_set,
                                  bindings[k].keyval, bindings[k].modifiers,
                                  signal_name,
                                  1, G_TYPE_INT, bindings[k].signal_parameter);
  }
}

Note that you are done with using gtk_binding_set_by_class() and
gtk_binding_entry_add_signal().  Everything else is just utility for my own
use.
No special handling of the created binding set is required, it is automatic in
the sense that it is handled by GTK+ itself.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



------------------------------

Message: 3
Date: Mon, 21 Aug 2006 20:29:58 +0100 (BST)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 351810] C++ bindings for GtkBinding*
To: gtkmm-forge lists sourceforge net
Message-ID: <20060821192958 1DDF26C4088 box gnome org>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=351810
 gtkmm | general | Ver: unspecified





------- Comment #4 from Paul Pogonyshev  2006-08-21 19:29 UTC -------
However, there are two difficulties I can see for a C++ implementation.  First
is that standard usage of GtkBindingSet relies on GType and, as far as I
understand, all Gtk::Widget descendants will have one GType in a Gtkmm program.
 This may be solved with `typeid'.

Second is that GtkBindingSet uses C-level signals and I'm not sure how to use
C++-level (sigc++) signals instead.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



------------------------------

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

------------------------------

_______________________________________________
Gtkmm-forge mailing list
Gtkmm-forge lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/gtkmm-forge


End of Gtkmm-forge Digest, Vol 3, Issue 23
******************************************



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]