[Glade-users] setting font to a entry widget



--qDbXVdCdHGoSgWSk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* rajesh rathnam <hairajesh83 yahoo co in> [040327 08:32]:

   2)  also i would like to double click a row in gtkclist. but i don't
   see any event of that type.

I don't think there is a double_click_event in GTK. I'd create a button_pre=
ss_event=20
signal handler and query event->type for GDK_2BUTTON_PRESS.

--- Example ---

gboolean
on_clist1_button_press_event      (GtkWidget       *widget,
                                   GdkEventButton  *event,
                                   gpointer user_data)
{

if (event->type =3D=3D GDK_2BUTTON_PRESS)
   {
      /* A double click occured */

      /* Your stuff goes here */
=20
      return TRUE;=20
   }
  return FALSE;
}

--- End example ---

Best regards - Juergen

--=20
GPG A997BA7A | 87FC DA31 5F00 C885 0DC3  E28F BD0D 4B33 A997 BA7A

--qDbXVdCdHGoSgWSk
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQFAZXbSvQ1LM6mXunoRAq51AJ9MEObQdh9HOwig0Vc9NwFbKlBtdwCfaLOG
76rsPZ6fS/2athwvRImqO5w=
=q4bA
-----END PGP SIGNATURE-----

--qDbXVdCdHGoSgWSk--




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