Commited evilynux patch for gap between screens.
This commit is contained in:
parent
5dae3a7a8a
commit
95b6ea0b27
|
@ -185,6 +185,33 @@ void on_menu_rotatescreen_activate (GtkMenuItem *menuitem, gpointer user_data)
|
||||||
resize(ScreenCoeff_Size);
|
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 ***** ***** ***** ***** */
|
/* MENU TOOLS ***** ***** ***** ***** */
|
||||||
void on_menu_IO_regs_activate (GtkMenuItem *menuitem, gpointer user_data) {
|
void on_menu_IO_regs_activate (GtkMenuItem *menuitem, gpointer user_data) {
|
||||||
GtkWidget * dlg = glade_xml_get_widget(xml_tools, "wtools_1_IOregs");
|
GtkWidget * dlg = glade_xml_get_widget(xml_tools, "wtools_1_IOregs");
|
||||||
|
|
|
@ -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_audio_on_activate (GtkMenuItem *menuitem, gpointer user_data);
|
||||||
void on_menu_rightscreen_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_rotatescreen_activate (GtkMenuItem *menuitem, gpointer user_data);
|
||||||
|
void on_menu_gapscreen_activate (GtkMenuItem *menuitem, gpointer user_data);
|
||||||
/* MENU TOOLS */
|
/* MENU TOOLS */
|
||||||
void on_menu_IO_regs_activate (GtkMenuItem *menuitem, gpointer user_data);
|
void on_menu_IO_regs_activate (GtkMenuItem *menuitem, gpointer user_data);
|
||||||
/* MENU ? */
|
/* MENU ? */
|
||||||
|
|
|
@ -370,6 +370,15 @@
|
||||||
<signal name="activate" handler="on_menu_rotatescreen_activate" last_modification_time="Sat, 06 Jan 2007 08:36:59 GMT"/>
|
<signal name="activate" handler="on_menu_rotatescreen_activate" last_modification_time="Sat, 06 Jan 2007 08:36:59 GMT"/>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</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>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
Loading…
Reference in New Issue