Changeset c1f1e1e


Ignore:
Timestamp:
Jun 3, 2010, 1:52:00 AM (14 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
521e600
Parents:
0e98d87
Message:
Add convenience method for connecting a window to a signal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mainwin.c

    r9bd51b8 rc1f1e1e  
    1414
    1515  /* connect a ton of dependencies */
    16   owl_signal_connect_object(g.gn, "notify::rightshift", G_CALLBACK(owl_window_dirty), window, G_CONNECT_SWAPPED);
     16  owl_dirty_window_on_signal(window, g.gn, "notify::rightshift");
    1717}
    1818
  • util.c

    rad788b5 rc1f1e1e  
    675675}
    676676
     677gulong owl_dirty_window_on_signal(owl_window *w, gpointer sender, const gchar *detailed_signal)
     678{
     679  return owl_signal_connect_object(sender, detailed_signal, G_CALLBACK(owl_window_dirty), w, G_CONNECT_SWAPPED);
     680}
     681
    677682typedef struct { /*noproto*/
    678683  GObject  *sender;
Note: See TracChangeset for help on using the changeset viewer.