Changeset 853f397 for mainpanel.c
- Timestamp:
- Jun 3, 2010, 1:36:06 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 840032d
- Parents:
- 8f9a044
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mainpanel.c
rfa65671 r853f397 1 1 #include "owl.h" 2 3 static void owl_mainpanel_size(owl_window *parent, void *user_data);4 2 5 3 void owl_mainpanel_init(owl_mainpanel *mp) … … 13 11 14 12 /* Set up sizing hooks */ 15 owl_signal_connect_object(owl_window_get_screen(), "resized", G_CALLBACK(owl_ mainpanel_size), mp->panel, 0);13 owl_signal_connect_object(owl_window_get_screen(), "resized", G_CALLBACK(owl_window_fill_parent_cb), mp->panel, 0); 16 14 g_signal_connect_swapped(mp->panel, "resized", G_CALLBACK(owl_mainpanel_layout_contents), mp); 17 15 18 16 /* Bootstrap the sizes and go */ 19 owl_ mainpanel_size(owl_window_get_screen(), mp->panel);17 owl_window_fill_parent_cb(owl_window_get_screen(), mp->panel); 20 18 owl_window_show_all(mp->panel); 21 }22 23 static void owl_mainpanel_size(owl_window *parent, void *user_data)24 {25 int lines, cols;26 owl_window *panel = user_data;27 28 /* Make this panel full-screen */29 owl_window_get_position(parent, &lines, &cols, NULL, NULL);30 owl_window_set_position(panel, lines, cols, 0, 0);31 19 } 32 20
Note: See TracChangeset
for help on using the changeset viewer.