<object class="GtkGrid" id="greid14">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="column_spacing">12</property>
<property name="row_spacing">6</property>
+ <property name="column_spacing">12</property>
<child>
<object class="GtkLabel" id="label_network">
<property name="visible">True</property>
<property name="label" translatable="yes">Network:</property>
</object>
<packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
<property name="label" translatable="yes">Character set:</property>
</object>
<packing>
- <property name="top_attach">1</property>
<property name="left_attach">0</property>
+ <property name="top_attach">1</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
</object>
<packing>
<property name="left_attach">1</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
</packing>
</child>
</object>
<object class="GtkGrid" id="grid15">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="column_spacing">6</property>
<property name="row_spacing">6</property>
+ <property name="column_spacing">6</property>
+ <child>
+ <object class="GtkVBox" id="vbox1">
+ <property name="visible">True</property>
+ <property name="spacing">0</property>
<child>
- <object class="GtkScrolledWindow" id="scrolledwindow19">
+ <object class="GtkScrolledWindow" id="scrolledwindow_network_server">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">never</property>
<property name="shadow_type">in</property>
+ <property name="expand">True</property>
<child>
<object class="GtkTreeView" id="treeview_servers">
<property name="visible">True</property>
</child>
</object>
<packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
</packing>
</child>
<child>
- <object class="GtkVButtonBox" id="vbuttonbox1">
+ <object class="GtkToolbar" id="toolbar_network_server">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="spacing">6</property>
- <property name="layout_style">start</property>
+ <property name="icon_size">1</property>
+ <style>
+ <class name="inline-toolbar"/>
+ </style>
<child>
- <object class="GtkButton" id="button_add">
- <property name="label">gtk-add</property>
+ <object class="GtkToolButton" id="button_add">
+ <property name="tooltip-text" translatable="yes">Add…</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="can_default">True</property>
- <property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
- <property name="use_stock">True</property>
+ <property name="receives_default">True</property>
+ <property name="icon_name">list-add-symbolic</property>
+ <property name="use_underline">True</property>
</object>
<packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">0</property>
</packing>
</child>
<child>
- <object class="GtkButton" id="button_remove">
- <property name="label">gtk-remove</property>
+ <object class="GtkToolButton" id="button_remove">
+ <property name="tooltip-text" translatable="yes">Remove</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="can_default">True</property>
- <property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
- <property name="use_stock">True</property>
+ <property name="receives_default">True</property>
+ <property name="icon_name">list-remove-symbolic</property>
+ <property name="use_underline">True</property>
</object>
<packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">1</property>
</packing>
</child>
<child>
- <object class="GtkButton" id="button_up">
- <property name="label">gtk-go-up</property>
+ <object class="GtkToolButton" id="button_up">
+ <property name="tooltip-text" translatable="yes">Up</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="can_default">True</property>
- <property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
- <property name="use_stock">True</property>
+ <property name="receives_default">True</property>
+ <property name="icon_name">go-up-symbolic</property>
+ <property name="use_underline">True</property>
</object>
<packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">2</property>
</packing>
</child>
<child>
- <object class="GtkButton" id="button_down">
- <property name="label">gtk-go-down</property>
+ <object class="GtkToolButton" id="button_down">
+ <property name="tooltip-text" translatable="yes">Down</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="can_default">True</property>
- <property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
- <property name="use_stock">True</property>
+ <property name="receives_default">True</property>
+ <property name="icon_name">go-down-symbolic</property>
+ <property name="use_underline">True</property>
</object>
<packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">3</property>
</packing>
</child>
</object>
<packing>
- <property name="left_attach">1</property>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
</packing>
</child>
</object>
</child>
- </object>
+ </object>
+ </child>
+ </object>
</child>
<child type="label">
<object class="GtkLabel" id="label_servers">
<property name="height">1</property>
</packing>
</child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
<child>
<object class="GtkLabel" id="label_password">
<property name="visible">True</property>
<object class="GtkGrid" id="grid_irc_settings1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="column_spacing">12</property>
<property name="row_spacing">6</property>
+ <property name="column_spacing">12</property>
<child>
<object class="GtkEntry" id="entry_quit_message">
<property name="visible">True</property>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">2</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
<property name="label" translatable="yes">Quit message:</property>
</object>
<packing>
+ <property name="left_attach">3</property>
<property name="top_attach">2</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
<property name="mnemonic_widget">entry_nick</property>
</object>
<packing>
- <property name="top_attach">1</property>
<property name="left_attach">0</property>
+ <property name="top_attach">1</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
</object>
<packing>
<property name="left_attach">0</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
</packing>
</child>
<child>
</object>
<packing>
<property name="left_attach">1</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
</packing>
</child>
</object>
GtkTreeSelection *selection;
GtkTreeViewColumn *column;
gchar *filename;
+ GtkWidget *sw, *toolbar;
+ GtkStyleContext *context;
g_return_val_if_fail (network != NULL, NULL);
"button_remove", &dialog->button_remove,
"button_up", &dialog->button_up,
"button_down", &dialog->button_down,
+ "scrolledwindow_network_server", &sw,
+ "toolbar_network_server", &toolbar,
NULL);
g_free (filename);
GTK_TREE_VIEW (dialog->treeview_servers),
-1, _("Server"), renderer, "text", COL_ADR,
NULL);
+ column = gtk_tree_view_get_column (GTK_TREE_VIEW (dialog->treeview_servers),
+ 0);
+ gtk_tree_view_column_set_expand (column, TRUE);
/* port */
adjustment = (GtkAdjustment *) gtk_adjustment_new (6667, 1, G_MAXUINT16,
GTK_TREE_VIEW (dialog->treeview_servers),
-1, _("Port"), renderer, "text", COL_PORT,
NULL);
- column = gtk_tree_view_get_column (GTK_TREE_VIEW (dialog->treeview_servers),
- 1);
- gtk_tree_view_column_set_expand (column, TRUE);
/* SSL */
renderer = gtk_cell_renderer_toggle_new ();
GTK_WINDOW (parent));
gtk_window_set_modal (GTK_WINDOW (dialog->dialog), TRUE);
+ /* join the add/remove toolbar to the treeview */
+ context = gtk_widget_get_style_context (sw);
+ gtk_style_context_set_junction_sides (context, GTK_JUNCTION_BOTTOM);
+
+ context = gtk_widget_get_style_context (toolbar);
+ gtk_style_context_set_junction_sides (context, GTK_JUNCTION_TOP);
+
irc_network_dialog_network_update_buttons (dialog);
gtk_widget_show_all (dialog->dialog);