removed unnecessary functions
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@63 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
db1c496e25
commit
e67aaf8ada
70
geany.glade
70
geany.glade
@ -59,7 +59,7 @@
|
||||
<property name="use_underline">True</property>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image450">
|
||||
<widget class="GtkImage" id="image458">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-new</property>
|
||||
<property name="icon_size">1</property>
|
||||
@ -133,7 +133,7 @@
|
||||
<accelerator key="s" modifiers="GDK_CONTROL_MASK | GDK_SHIFT_MASK" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image451">
|
||||
<widget class="GtkImage" id="image459">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-save</property>
|
||||
<property name="icon_size">1</property>
|
||||
@ -171,7 +171,7 @@
|
||||
<accelerator key="d" modifiers="GDK_MOD1_MASK" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image452">
|
||||
<widget class="GtkImage" id="image460">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-close</property>
|
||||
<property name="icon_size">1</property>
|
||||
@ -313,7 +313,7 @@
|
||||
<property name="use_underline">True</property>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image453">
|
||||
<widget class="GtkImage" id="image461">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-add</property>
|
||||
<property name="icon_size">1</property>
|
||||
@ -345,7 +345,7 @@
|
||||
<property name="use_underline">True</property>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image454">
|
||||
<widget class="GtkImage" id="image462">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-add</property>
|
||||
<property name="icon_size">1</property>
|
||||
@ -484,7 +484,7 @@
|
||||
<accelerator key="F3" modifiers="0" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image455">
|
||||
<widget class="GtkImage" id="image463">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-find</property>
|
||||
<property name="icon_size">1</property>
|
||||
@ -505,7 +505,7 @@
|
||||
<signal name="activate" handler="on_replace1_activate" last_modification_time="Sun, 23 Oct 2005 13:22:36 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image456">
|
||||
<widget class="GtkImage" id="image464">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-find-and-replace</property>
|
||||
<property name="icon_size">1</property>
|
||||
@ -555,7 +555,7 @@
|
||||
<signal name="activate" handler="on_change_font1_activate" last_modification_time="Fri, 22 Apr 2005 18:58:45 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image457">
|
||||
<widget class="GtkImage" id="image465">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-select-font</property>
|
||||
<property name="icon_size">1</property>
|
||||
@ -577,7 +577,7 @@
|
||||
<signal name="activate" handler="on_show_color_chooser1_activate" last_modification_time="Wed, 22 Jun 2005 18:10:21 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image458">
|
||||
<widget class="GtkImage" id="image466">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-select-color</property>
|
||||
<property name="icon_size">1</property>
|
||||
@ -639,54 +639,6 @@
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkMenuItem" id="menu_toolbar2">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Toolbar</property>
|
||||
<property name="use_underline">True</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkMenu" id="menu_toolbar2_menu">
|
||||
|
||||
<child>
|
||||
<widget class="GtkRadioMenuItem" id="images_and_text1">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Show images and text in the toolbar</property>
|
||||
<property name="label" translatable="yes">images and text</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="active">True</property>
|
||||
<signal name="activate" handler="on_images_and_text1_activate" last_modification_time="Fri, 22 Apr 2005 15:43:42 GMT"/>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkRadioMenuItem" id="images_only1">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Show only the images of buttons</property>
|
||||
<property name="label" translatable="yes">images only</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="active">True</property>
|
||||
<property name="group">images_and_text1</property>
|
||||
<signal name="activate" handler="on_images_only1_activate" last_modification_time="Fri, 22 Apr 2005 15:43:42 GMT"/>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkRadioMenuItem" id="text_only1">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Show only the text of buttons</property>
|
||||
<property name="label" translatable="yes">text only</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="active">True</property>
|
||||
<property name="group">images_and_text1</property>
|
||||
<signal name="activate" handler="on_text_only1_activate" last_modification_time="Fri, 22 Apr 2005 15:43:42 GMT"/>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkSeparatorMenuItem" id="menu_separator5">
|
||||
<property name="visible">True</property>
|
||||
@ -969,7 +921,7 @@
|
||||
<widget class="GtkToolbar" id="toolbar1">
|
||||
<property name="visible">True</property>
|
||||
<property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
|
||||
<property name="toolbar_style">GTK_TOOLBAR_ICONS</property>
|
||||
<property name="toolbar_style">GTK_TOOLBAR_BOTH</property>
|
||||
<property name="tooltips">True</property>
|
||||
<property name="show_arrow">True</property>
|
||||
|
||||
@ -1113,7 +1065,7 @@
|
||||
<widget class="GtkToolButton" id="toolbutton24">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Open a color chooser dialog, to interactively pick colors from a palette.</property>
|
||||
<property name="label" translatable="yes"></property>
|
||||
<property name="label" translatable="yes">Color</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-select-color</property>
|
||||
<property name="visible_horizontal">True</property>
|
||||
|
@ -487,33 +487,6 @@ on_toolbutton23_clicked (GtkToolButton *toolbutton,
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
on_images_and_text1_activate (GtkMenuItem *menuitem,
|
||||
gpointer user_data)
|
||||
{
|
||||
gtk_toolbar_set_style(GTK_TOOLBAR(app->toolbar), GTK_TOOLBAR_BOTH);
|
||||
app->toolbar_icon_style = GTK_TOOLBAR_BOTH;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
on_images_only1_activate (GtkMenuItem *menuitem,
|
||||
gpointer user_data)
|
||||
{
|
||||
gtk_toolbar_set_style(GTK_TOOLBAR(app->toolbar), GTK_TOOLBAR_ICONS);
|
||||
app->toolbar_icon_style = GTK_TOOLBAR_ICONS;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
on_text_only1_activate (GtkMenuItem *menuitem,
|
||||
gpointer user_data)
|
||||
{
|
||||
gtk_toolbar_set_style(GTK_TOOLBAR(app->toolbar), GTK_TOOLBAR_TEXT);
|
||||
app->toolbar_icon_style = GTK_TOOLBAR_TEXT;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
on_images_and_text2_activate (GtkMenuItem *menuitem,
|
||||
gpointer user_data)
|
||||
@ -1182,7 +1155,7 @@ on_editor_key_press_event (GtkWidget *widget,
|
||||
}
|
||||
break;
|
||||
}
|
||||
/* case GDK_Home:
|
||||
case GDK_Home:
|
||||
{
|
||||
if (cursor_pos_home_state == 0 || current_line != sci_get_current_line(doc_list[idx].sci, pos))
|
||||
{
|
||||
|
@ -65,18 +65,6 @@ void
|
||||
on_toolbutton6_clicked (GtkToolButton *toolbutton,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
on_images_and_text1_activate (GtkMenuItem *menuitem,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
on_images_only1_activate (GtkMenuItem *menuitem,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
on_text_only1_activate (GtkMenuItem *menuitem,
|
||||
gpointer user_data);
|
||||
|
||||
void
|
||||
on_change_font1_activate (GtkMenuItem *menuitem,
|
||||
gpointer user_data);
|
||||
|
142
src/interface.c
142
src/interface.c
@ -37,7 +37,7 @@ create_window1 (void)
|
||||
GtkWidget *menuitem1_menu;
|
||||
GtkWidget *menu_new1;
|
||||
GtkWidget *menu_new_with_template1;
|
||||
GtkWidget *image450;
|
||||
GtkWidget *image458;
|
||||
GtkWidget *menu_new_with_template1_menu;
|
||||
GtkWidget *invisible2;
|
||||
GtkWidget *separator12;
|
||||
@ -46,11 +46,11 @@ create_window1 (void)
|
||||
GtkWidget *menu_save1;
|
||||
GtkWidget *menu_save_as1;
|
||||
GtkWidget *menu_save_all1;
|
||||
GtkWidget *image451;
|
||||
GtkWidget *image459;
|
||||
GtkWidget *separator14;
|
||||
GtkWidget *menu_close1;
|
||||
GtkWidget *menu_close_all1;
|
||||
GtkWidget *image452;
|
||||
GtkWidget *image460;
|
||||
GtkWidget *menu_separatormenuitem1;
|
||||
GtkWidget *recent_files1;
|
||||
GtkWidget *recent_files1_menu;
|
||||
@ -68,11 +68,11 @@ create_window1 (void)
|
||||
GtkWidget *menu_delete1;
|
||||
GtkWidget *menu_seperator2;
|
||||
GtkWidget *insert_include2;
|
||||
GtkWidget *image453;
|
||||
GtkWidget *image461;
|
||||
GtkWidget *insert_include2_menu;
|
||||
GtkWidget *invisible4;
|
||||
GtkWidget *add_comments1;
|
||||
GtkWidget *image454;
|
||||
GtkWidget *image462;
|
||||
GtkWidget *add_comments1_menu;
|
||||
GtkWidget *menu_add_changelog_entry1;
|
||||
GtkWidget *insert_file_header1;
|
||||
@ -88,28 +88,22 @@ create_window1 (void)
|
||||
GtkWidget *separator9;
|
||||
GtkWidget *find1;
|
||||
GtkWidget *find_next1;
|
||||
GtkWidget *image455;
|
||||
GtkWidget *image463;
|
||||
GtkWidget *replace1;
|
||||
GtkWidget *image456;
|
||||
GtkWidget *image464;
|
||||
GtkWidget *separator11;
|
||||
GtkWidget *preferences1;
|
||||
GtkWidget *menuitem3;
|
||||
GtkWidget *menuitem3_menu;
|
||||
GtkWidget *menu_change_font1;
|
||||
GtkWidget *image457;
|
||||
GtkWidget *image465;
|
||||
GtkWidget *menu_choose_color1;
|
||||
GtkWidget *image458;
|
||||
GtkWidget *image466;
|
||||
GtkWidget *menu_separator4;
|
||||
GtkWidget *menu_fullscreen1;
|
||||
GtkWidget *menu_show_messages_window1;
|
||||
GtkWidget *menu_show_toolbar1;
|
||||
GtkWidget *menu_markers_margin1;
|
||||
GtkWidget *menu_toolbar2;
|
||||
GtkWidget *menu_toolbar2_menu;
|
||||
GSList *images_and_text1_group = NULL;
|
||||
GtkWidget *images_and_text1;
|
||||
GtkWidget *images_only1;
|
||||
GtkWidget *text_only1;
|
||||
GtkWidget *menu_separator5;
|
||||
GtkWidget *menu_zoom_in1;
|
||||
GtkWidget *menu_zoom_out1;
|
||||
@ -227,9 +221,9 @@ create_window1 (void)
|
||||
gtk_widget_show (menu_new_with_template1);
|
||||
gtk_container_add (GTK_CONTAINER (menuitem1_menu), menu_new_with_template1);
|
||||
|
||||
image450 = gtk_image_new_from_stock ("gtk-new", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image450);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_new_with_template1), image450);
|
||||
image458 = gtk_image_new_from_stock ("gtk-new", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image458);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_new_with_template1), image458);
|
||||
|
||||
menu_new_with_template1_menu = gtk_menu_new ();
|
||||
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_new_with_template1), menu_new_with_template1_menu);
|
||||
@ -267,9 +261,9 @@ create_window1 (void)
|
||||
GDK_s, (GdkModifierType) GDK_CONTROL_MASK | GDK_SHIFT_MASK,
|
||||
GTK_ACCEL_VISIBLE);
|
||||
|
||||
image451 = gtk_image_new_from_stock ("gtk-save", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image451);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_save_all1), image451);
|
||||
image459 = gtk_image_new_from_stock ("gtk-save", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image459);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_save_all1), image459);
|
||||
|
||||
separator14 = gtk_separator_menu_item_new ();
|
||||
gtk_widget_show (separator14);
|
||||
@ -288,9 +282,9 @@ create_window1 (void)
|
||||
GDK_d, (GdkModifierType) GDK_MOD1_MASK,
|
||||
GTK_ACCEL_VISIBLE);
|
||||
|
||||
image452 = gtk_image_new_from_stock ("gtk-close", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image452);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_close_all1), image452);
|
||||
image460 = gtk_image_new_from_stock ("gtk-close", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image460);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_close_all1), image460);
|
||||
|
||||
menu_separatormenuitem1 = gtk_separator_menu_item_new ();
|
||||
gtk_widget_show (menu_separatormenuitem1);
|
||||
@ -362,9 +356,9 @@ create_window1 (void)
|
||||
gtk_widget_show (insert_include2);
|
||||
gtk_container_add (GTK_CONTAINER (edit1_menu), insert_include2);
|
||||
|
||||
image453 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image453);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (insert_include2), image453);
|
||||
image461 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image461);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (insert_include2), image461);
|
||||
|
||||
insert_include2_menu = gtk_menu_new ();
|
||||
gtk_menu_item_set_submenu (GTK_MENU_ITEM (insert_include2), insert_include2_menu);
|
||||
@ -376,9 +370,9 @@ create_window1 (void)
|
||||
gtk_widget_show (add_comments1);
|
||||
gtk_container_add (GTK_CONTAINER (edit1_menu), add_comments1);
|
||||
|
||||
image454 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image454);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (add_comments1), image454);
|
||||
image462 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image462);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (add_comments1), image462);
|
||||
|
||||
add_comments1_menu = gtk_menu_new ();
|
||||
gtk_menu_item_set_submenu (GTK_MENU_ITEM (add_comments1), add_comments1_menu);
|
||||
@ -449,17 +443,17 @@ create_window1 (void)
|
||||
GDK_F3, (GdkModifierType) 0,
|
||||
GTK_ACCEL_VISIBLE);
|
||||
|
||||
image455 = gtk_image_new_from_stock ("gtk-find", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image455);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (find_next1), image455);
|
||||
image463 = gtk_image_new_from_stock ("gtk-find", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image463);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (find_next1), image463);
|
||||
|
||||
replace1 = gtk_image_menu_item_new_with_mnemonic (_("_Replace"));
|
||||
gtk_widget_show (replace1);
|
||||
gtk_container_add (GTK_CONTAINER (edit1_menu), replace1);
|
||||
|
||||
image456 = gtk_image_new_from_stock ("gtk-find-and-replace", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image456);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (replace1), image456);
|
||||
image464 = gtk_image_new_from_stock ("gtk-find-and-replace", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image464);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (replace1), image464);
|
||||
|
||||
separator11 = gtk_separator_menu_item_new ();
|
||||
gtk_widget_show (separator11);
|
||||
@ -482,18 +476,18 @@ create_window1 (void)
|
||||
gtk_container_add (GTK_CONTAINER (menuitem3_menu), menu_change_font1);
|
||||
gtk_tooltips_set_tip (tooltips, menu_change_font1, _("Change the default font"), NULL);
|
||||
|
||||
image457 = gtk_image_new_from_stock ("gtk-select-font", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image457);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_change_font1), image457);
|
||||
image465 = gtk_image_new_from_stock ("gtk-select-font", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image465);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_change_font1), image465);
|
||||
|
||||
menu_choose_color1 = gtk_image_menu_item_new_with_mnemonic (_("Show Color Chooser"));
|
||||
gtk_widget_show (menu_choose_color1);
|
||||
gtk_container_add (GTK_CONTAINER (menuitem3_menu), menu_choose_color1);
|
||||
gtk_tooltips_set_tip (tooltips, menu_choose_color1, _("Open a color chooser dialog, to interactively pick colors from a palette."), NULL);
|
||||
|
||||
image458 = gtk_image_new_from_stock ("gtk-select-color", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image458);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_choose_color1), image458);
|
||||
image466 = gtk_image_new_from_stock ("gtk-select-color", GTK_ICON_SIZE_MENU);
|
||||
gtk_widget_show (image466);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_choose_color1), image466);
|
||||
|
||||
menu_separator4 = gtk_separator_menu_item_new ();
|
||||
gtk_widget_show (menu_separator4);
|
||||
@ -524,34 +518,6 @@ create_window1 (void)
|
||||
gtk_container_add (GTK_CONTAINER (menuitem3_menu), menu_markers_margin1);
|
||||
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_markers_margin1), TRUE);
|
||||
|
||||
menu_toolbar2 = gtk_menu_item_new_with_mnemonic (_("Toolbar"));
|
||||
gtk_widget_show (menu_toolbar2);
|
||||
gtk_container_add (GTK_CONTAINER (menuitem3_menu), menu_toolbar2);
|
||||
|
||||
menu_toolbar2_menu = gtk_menu_new ();
|
||||
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_toolbar2), menu_toolbar2_menu);
|
||||
|
||||
images_and_text1 = gtk_radio_menu_item_new_with_mnemonic (images_and_text1_group, _("images and text"));
|
||||
images_and_text1_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (images_and_text1));
|
||||
gtk_widget_show (images_and_text1);
|
||||
gtk_container_add (GTK_CONTAINER (menu_toolbar2_menu), images_and_text1);
|
||||
gtk_tooltips_set_tip (tooltips, images_and_text1, _("Show images and text in the toolbar"), NULL);
|
||||
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (images_and_text1), TRUE);
|
||||
|
||||
images_only1 = gtk_radio_menu_item_new_with_mnemonic (images_and_text1_group, _("images only"));
|
||||
images_and_text1_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (images_only1));
|
||||
gtk_widget_show (images_only1);
|
||||
gtk_container_add (GTK_CONTAINER (menu_toolbar2_menu), images_only1);
|
||||
gtk_tooltips_set_tip (tooltips, images_only1, _("Show only the images of buttons"), NULL);
|
||||
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (images_only1), TRUE);
|
||||
|
||||
text_only1 = gtk_radio_menu_item_new_with_mnemonic (images_and_text1_group, _("text only"));
|
||||
images_and_text1_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (text_only1));
|
||||
gtk_widget_show (text_only1);
|
||||
gtk_container_add (GTK_CONTAINER (menu_toolbar2_menu), text_only1);
|
||||
gtk_tooltips_set_tip (tooltips, text_only1, _("Show only the text of buttons"), NULL);
|
||||
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (text_only1), TRUE);
|
||||
|
||||
menu_separator5 = gtk_separator_menu_item_new ();
|
||||
gtk_widget_show (menu_separator5);
|
||||
gtk_container_add (GTK_CONTAINER (menuitem3_menu), menu_separator5);
|
||||
@ -692,7 +658,7 @@ create_window1 (void)
|
||||
toolbar1 = gtk_toolbar_new ();
|
||||
gtk_widget_show (toolbar1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox1), toolbar1, FALSE, FALSE, 0);
|
||||
gtk_toolbar_set_style (GTK_TOOLBAR (toolbar1), GTK_TOOLBAR_ICONS);
|
||||
gtk_toolbar_set_style (GTK_TOOLBAR (toolbar1), GTK_TOOLBAR_BOTH);
|
||||
tmp_toolbar_icon_size = gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1));
|
||||
|
||||
toolitem12 = (GtkWidget*) gtk_tool_item_new ();
|
||||
@ -739,7 +705,7 @@ create_window1 (void)
|
||||
|
||||
tmp_image = gtk_image_new_from_stock ("gtk-select-color", tmp_toolbar_icon_size);
|
||||
gtk_widget_show (tmp_image);
|
||||
toolbutton24 = (GtkWidget*) gtk_tool_button_new (tmp_image, "");
|
||||
toolbutton24 = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Color"));
|
||||
gtk_widget_show (toolbutton24);
|
||||
gtk_container_add (GTK_CONTAINER (toolbar1), toolbutton24);
|
||||
gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (toolbutton24), tooltips, _("Open a color chooser dialog, to interactively pick colors from a palette."), NULL);
|
||||
@ -1019,15 +985,6 @@ create_window1 (void)
|
||||
g_signal_connect ((gpointer) menu_markers_margin1, "toggled",
|
||||
G_CALLBACK (on_markers_margin1_toggled),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) images_and_text1, "activate",
|
||||
G_CALLBACK (on_images_and_text1_activate),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) images_only1, "activate",
|
||||
G_CALLBACK (on_images_only1_activate),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) text_only1, "activate",
|
||||
G_CALLBACK (on_text_only1_activate),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) menu_zoom_in1, "activate",
|
||||
G_CALLBACK (on_zoom_in1_activate),
|
||||
NULL);
|
||||
@ -1149,7 +1106,7 @@ create_window1 (void)
|
||||
GLADE_HOOKUP_OBJECT (window1, menuitem1_menu, "menuitem1_menu");
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_new1, "menu_new1");
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_new_with_template1, "menu_new_with_template1");
|
||||
GLADE_HOOKUP_OBJECT (window1, image450, "image450");
|
||||
GLADE_HOOKUP_OBJECT (window1, image458, "image458");
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_new_with_template1_menu, "menu_new_with_template1_menu");
|
||||
GLADE_HOOKUP_OBJECT (window1, invisible2, "invisible2");
|
||||
GLADE_HOOKUP_OBJECT (window1, separator12, "separator12");
|
||||
@ -1158,11 +1115,11 @@ create_window1 (void)
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_save1, "menu_save1");
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_save_as1, "menu_save_as1");
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_save_all1, "menu_save_all1");
|
||||
GLADE_HOOKUP_OBJECT (window1, image451, "image451");
|
||||
GLADE_HOOKUP_OBJECT (window1, image459, "image459");
|
||||
GLADE_HOOKUP_OBJECT (window1, separator14, "separator14");
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_close1, "menu_close1");
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_close_all1, "menu_close_all1");
|
||||
GLADE_HOOKUP_OBJECT (window1, image452, "image452");
|
||||
GLADE_HOOKUP_OBJECT (window1, image460, "image460");
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_separatormenuitem1, "menu_separatormenuitem1");
|
||||
GLADE_HOOKUP_OBJECT (window1, recent_files1, "recent_files1");
|
||||
GLADE_HOOKUP_OBJECT (window1, recent_files1_menu, "recent_files1_menu");
|
||||
@ -1180,11 +1137,11 @@ create_window1 (void)
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_delete1, "menu_delete1");
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_seperator2, "menu_seperator2");
|
||||
GLADE_HOOKUP_OBJECT (window1, insert_include2, "insert_include2");
|
||||
GLADE_HOOKUP_OBJECT (window1, image453, "image453");
|
||||
GLADE_HOOKUP_OBJECT (window1, image461, "image461");
|
||||
GLADE_HOOKUP_OBJECT (window1, insert_include2_menu, "insert_include2_menu");
|
||||
GLADE_HOOKUP_OBJECT (window1, invisible4, "invisible4");
|
||||
GLADE_HOOKUP_OBJECT (window1, add_comments1, "add_comments1");
|
||||
GLADE_HOOKUP_OBJECT (window1, image454, "image454");
|
||||
GLADE_HOOKUP_OBJECT (window1, image462, "image462");
|
||||
GLADE_HOOKUP_OBJECT (window1, add_comments1_menu, "add_comments1_menu");
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_add_changelog_entry1, "menu_add_changelog_entry1");
|
||||
GLADE_HOOKUP_OBJECT (window1, insert_file_header1, "insert_file_header1");
|
||||
@ -1200,27 +1157,22 @@ create_window1 (void)
|
||||
GLADE_HOOKUP_OBJECT (window1, separator9, "separator9");
|
||||
GLADE_HOOKUP_OBJECT (window1, find1, "find1");
|
||||
GLADE_HOOKUP_OBJECT (window1, find_next1, "find_next1");
|
||||
GLADE_HOOKUP_OBJECT (window1, image455, "image455");
|
||||
GLADE_HOOKUP_OBJECT (window1, image463, "image463");
|
||||
GLADE_HOOKUP_OBJECT (window1, replace1, "replace1");
|
||||
GLADE_HOOKUP_OBJECT (window1, image456, "image456");
|
||||
GLADE_HOOKUP_OBJECT (window1, image464, "image464");
|
||||
GLADE_HOOKUP_OBJECT (window1, separator11, "separator11");
|
||||
GLADE_HOOKUP_OBJECT (window1, preferences1, "preferences1");
|
||||
GLADE_HOOKUP_OBJECT (window1, menuitem3, "menuitem3");
|
||||
GLADE_HOOKUP_OBJECT (window1, menuitem3_menu, "menuitem3_menu");
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_change_font1, "menu_change_font1");
|
||||
GLADE_HOOKUP_OBJECT (window1, image457, "image457");
|
||||
GLADE_HOOKUP_OBJECT (window1, image465, "image465");
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_choose_color1, "menu_choose_color1");
|
||||
GLADE_HOOKUP_OBJECT (window1, image458, "image458");
|
||||
GLADE_HOOKUP_OBJECT (window1, image466, "image466");
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_separator4, "menu_separator4");
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_fullscreen1, "menu_fullscreen1");
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_show_messages_window1, "menu_show_messages_window1");
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_show_toolbar1, "menu_show_toolbar1");
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_markers_margin1, "menu_markers_margin1");
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_toolbar2, "menu_toolbar2");
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_toolbar2_menu, "menu_toolbar2_menu");
|
||||
GLADE_HOOKUP_OBJECT (window1, images_and_text1, "images_and_text1");
|
||||
GLADE_HOOKUP_OBJECT (window1, images_only1, "images_only1");
|
||||
GLADE_HOOKUP_OBJECT (window1, text_only1, "text_only1");
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_separator5, "menu_separator5");
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_zoom_in1, "menu_zoom_in1");
|
||||
GLADE_HOOKUP_OBJECT (window1, menu_zoom_out1, "menu_zoom_out1");
|
||||
|
@ -103,7 +103,7 @@ void apply_settings(void)
|
||||
app->msgwindow_visible = FALSE;
|
||||
}
|
||||
|
||||
// sets the icon style of the toolbar the ugly way
|
||||
// sets the icon style of the toolbar
|
||||
switch (app->toolbar_icon_style)
|
||||
{
|
||||
case GTK_TOOLBAR_BOTH:
|
||||
@ -213,9 +213,9 @@ gint main(gint argc, gchar **argv)
|
||||
|
||||
|
||||
#ifdef ENABLE_NLS
|
||||
bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
|
||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||
textdomain (GETTEXT_PACKAGE);
|
||||
bindtextdomain(GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
|
||||
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
|
||||
textdomain(GETTEXT_PACKAGE);
|
||||
#endif
|
||||
gtk_set_locale();
|
||||
|
||||
@ -380,7 +380,6 @@ gint main(gint argc, gchar **argv)
|
||||
utils_close_buttons_toggle();
|
||||
utils_save_buttons_toggle(FALSE);
|
||||
|
||||
gtk_widget_hide(lookup_widget(app->window, "menu_toolbar2"));
|
||||
// this option is currently disabled, until the document menu item is reordered
|
||||
gtk_widget_hide(lookup_widget(app->window, "set_file_readonly1"));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user