Commited evilynux patch for gap between screens.

This commit is contained in:
yabause 2007-01-07 00:02:16 +00:00
parent 5dae3a7a8a
commit 95b6ea0b27
3 changed files with 37 additions and 0 deletions

View File

@ -185,6 +185,33 @@ void on_menu_rotatescreen_activate (GtkMenuItem *menuitem, gpointer user_data)
resize(ScreenCoeff_Size);
}
void on_menu_gapscreen_activate (GtkMenuItem *menuitem, gpointer user_data) {
/* we want to add a gap between screens */
gboolean ScreenGap = gtk_check_menu_item_get_active((GtkCheckMenuItem*)menuitem);
GtkWidget * spacer = glade_xml_get_widget(xml, "misc_sep4");
GtkWidget * layoutvbox = glade_xml_get_widget(xml, "wvb_Layout");
if (ScreenGap) {
gtk_box_set_child_packing(
layoutvbox,
spacer,
FALSE,
FALSE,
33,
GTK_PACK_START);
} else {
gtk_box_set_child_packing(
layoutvbox,
spacer,
FALSE,
FALSE,
0,
GTK_PACK_START);
}
/* Resize so we don't end up with unwanted space at the bottom */
resize(ScreenCoeff_Size);
}
/* MENU TOOLS ***** ***** ***** ***** */
void on_menu_IO_regs_activate (GtkMenuItem *menuitem, gpointer user_data) {
GtkWidget * dlg = glade_xml_get_widget(xml_tools, "wtools_1_IOregs");

View File

@ -33,6 +33,7 @@ void on_menu_controls_activate (GtkMenuItem *menuitem, gpointer user_data);
void on_menu_audio_on_activate (GtkMenuItem *menuitem, gpointer user_data);
void on_menu_rightscreen_activate (GtkMenuItem *menuitem, gpointer user_data);
void on_menu_rotatescreen_activate (GtkMenuItem *menuitem, gpointer user_data);
void on_menu_gapscreen_activate (GtkMenuItem *menuitem, gpointer user_data);
/* MENU TOOLS */
void on_menu_IO_regs_activate (GtkMenuItem *menuitem, gpointer user_data);
/* MENU ? */

View File

@ -370,6 +370,15 @@
<signal name="activate" handler="on_menu_rotatescreen_activate" last_modification_time="Sat, 06 Jan 2007 08:36:59 GMT"/>
</widget>
</child>
<child>
<widget class="GtkCheckMenuItem" id="menu_gapscreen">
<property name="visible">True</property>
<property name="label" translatable="yes">Gap between screens</property>
<property name="use_underline">True</property>
<property name="active">False</property>
<signal name="activate" handler="on_menu_gapscreen_activate" last_modification_time="Sat, 06 Jan 2007 16:35:59 GMT"/>
</widget>
</child>
</widget>
</child>
</widget>