First working elements of the xkb layout configuration in the keyboard capplet
This commit is contained in:
parent
2c669cae7e
commit
3cd10b9aa0
6 changed files with 1088 additions and 3 deletions
|
@ -1,9 +1,12 @@
|
|||
bin_PROGRAMS = gnome-keyboard-properties
|
||||
|
||||
gnome_keyboard_properties_SOURCES = gnome-keyboard-properties.c
|
||||
gnome_keyboard_properties_SOURCES = gnome-keyboard-properties.c \
|
||||
gnome-keyboard-properties-xkb.c \
|
||||
gnome-keyboard-properties-xkblt.c \
|
||||
gnome-keyboard-properties-xkb.h
|
||||
gnome_keyboard_properties_LDADD = \
|
||||
../accessibility/keyboard/libaccessibility-keyboard.a \
|
||||
$(GNOMECC_CAPPLETS_LIBS)
|
||||
$(GNOMECC_CAPPLETS_LIBS) $(LIBXKLAVIER_LIBS) ../../libgswitchit/libgswitchit.a
|
||||
|
||||
@INTLTOOL_DESKTOP_RULE@
|
||||
|
||||
|
@ -24,6 +27,6 @@ desktopdir = $(GNOMECC_DESKTOP_DIR)
|
|||
Desktop_in_files = keyboard.desktop.in
|
||||
desktop_DATA = $(Desktop_in_files:.desktop.in=.desktop)
|
||||
|
||||
INCLUDES = $(GNOMECC_CAPPLETS_CFLAGS)
|
||||
INCLUDES = $(GNOMECC_CAPPLETS_CFLAGS) $(LIBXKLAVIER_CFLAGS)
|
||||
CLEANFILES = $(GNOMECC_CAPPLETS_CLEANFILES)
|
||||
EXTRA_DIST = $(Glade_DATA) $(icons_DATA) $(Desktop_in_files)
|
||||
|
|
188
capplets/keyboard/gnome-keyboard-properties-xkb.c
Normal file
188
capplets/keyboard/gnome-keyboard-properties-xkb.c
Normal file
|
@ -0,0 +1,188 @@
|
|||
/* -*- mode: c; style: linux -*- */
|
||||
|
||||
/* gnome-keyboard-properties-xkb.c
|
||||
* Copyright (C) 2003 Sergey V. Oudaltsov
|
||||
*
|
||||
* Written by: Sergey V. Oudaltsov <svu@users.sourceforge.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
* 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <gnome.h>
|
||||
#include <gconf/gconf-client.h>
|
||||
#include <glade/glade.h>
|
||||
|
||||
#include "libgswitchit/gswitchit_xkb_config.h"
|
||||
|
||||
#include "capplet-util.h"
|
||||
#include "gconf-property-editor.h"
|
||||
#include "activate-settings-daemon.h"
|
||||
#include "capplet-stock-icons.h"
|
||||
#include <../accessibility/keyboard/accessibility-keyboard.h>
|
||||
|
||||
#include "gnome-keyboard-properties-xkb.h"
|
||||
|
||||
static int itemCounter;
|
||||
|
||||
char *
|
||||
xci_desc_to_utf8 (XklConfigItem * ci)
|
||||
{
|
||||
char *sd = g_strstrip (ci->description);
|
||||
return sd[0] == 0 ? g_strdup (ci->name) :
|
||||
g_locale_to_utf8 (sd, -1, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
static GConfValue *
|
||||
model_from_widget (GConfPropertyEditor * peditor, GConfValue * value)
|
||||
{
|
||||
GConfValue *new_value = gconf_value_new (GCONF_VALUE_STRING);
|
||||
const char *rvs = "";
|
||||
if (value->type == GCONF_VALUE_INT) {
|
||||
GtkWidget *omenu =
|
||||
GTK_WIDGET (gconf_property_editor_get_ui_control
|
||||
(peditor));
|
||||
const int ivalue = gconf_value_get_int (value);
|
||||
GtkWidget *menu =
|
||||
gtk_option_menu_get_menu (GTK_OPTION_MENU (omenu));
|
||||
GList *items = GTK_MENU_SHELL (menu)->children;
|
||||
while (items != NULL) {
|
||||
GtkWidget *item = GTK_WIDGET (items->data);
|
||||
const int itemNo =
|
||||
GPOINTER_TO_INT (g_object_get_data
|
||||
(G_OBJECT (item), "itemNo"));
|
||||
if (itemNo == ivalue) {
|
||||
rvs = (const char *)
|
||||
g_object_get_data (G_OBJECT (item),
|
||||
"itemId");
|
||||
break;
|
||||
}
|
||||
items = items->next;
|
||||
}
|
||||
}
|
||||
gconf_value_set_string (new_value, rvs);
|
||||
return new_value;
|
||||
}
|
||||
|
||||
static GConfValue *
|
||||
model_to_widget (GConfPropertyEditor * peditor, GConfValue * value)
|
||||
{
|
||||
GConfValue *new_value;
|
||||
int rvi = -1;
|
||||
|
||||
new_value = gconf_value_new (GCONF_VALUE_INT);
|
||||
|
||||
if (value->type == GCONF_VALUE_STRING) {
|
||||
GtkWidget *omenu =
|
||||
GTK_WIDGET (gconf_property_editor_get_ui_control
|
||||
(peditor));
|
||||
const char *svalue = gconf_value_get_string (value);
|
||||
GtkWidget *menu =
|
||||
gtk_option_menu_get_menu (GTK_OPTION_MENU (omenu));
|
||||
GList *items = GTK_MENU_SHELL (menu)->children;
|
||||
while (items != NULL) {
|
||||
GtkWidget *item = GTK_WIDGET (items->data);
|
||||
const char *itemId = (const char *)
|
||||
g_object_get_data (G_OBJECT (item), "itemId");
|
||||
if (!g_strcasecmp (itemId, svalue)) {
|
||||
rvi =
|
||||
GPOINTER_TO_INT (g_object_get_data
|
||||
(G_OBJECT (item),
|
||||
"itemNo"));
|
||||
break;
|
||||
}
|
||||
items = items->next;
|
||||
}
|
||||
}
|
||||
gconf_value_set_int (new_value, rvi);
|
||||
|
||||
return new_value;
|
||||
}
|
||||
|
||||
static void
|
||||
cleanup_xkb_tabs (GtkWidget * widget, GladeXML * dialog)
|
||||
{
|
||||
XklConfigFreeRegistry ();
|
||||
XklConfigTerm ();
|
||||
}
|
||||
|
||||
static void
|
||||
add_model_to_option_menu (const XklConfigItemPtr configItem,
|
||||
GtkWidget * menu)
|
||||
{
|
||||
char *utfModelName = xci_desc_to_utf8 (configItem);
|
||||
GtkWidget *menuItem = gtk_menu_item_new_with_label (utfModelName);
|
||||
g_object_set_data (G_OBJECT (menuItem), "itemNo",
|
||||
GINT_TO_POINTER (itemCounter++));
|
||||
g_object_set_data_full (G_OBJECT (menuItem), "itemId",
|
||||
g_strdup (configItem->name),
|
||||
(GDestroyNotify) g_free);
|
||||
g_free (utfModelName);
|
||||
gtk_menu_append (GTK_MENU (menu), GTK_WIDGET (menuItem));
|
||||
}
|
||||
|
||||
static void
|
||||
fill_models_option_menu (GladeXML * dialog)
|
||||
{
|
||||
GtkWidget *menu = gtk_menu_new ();
|
||||
itemCounter = 0;
|
||||
XklConfigEnumModels ((ConfigItemProcessFunc)
|
||||
add_model_to_option_menu, menu);
|
||||
gtk_option_menu_set_menu (GTK_OPTION_MENU (WID ("xkb_models")),
|
||||
GTK_WIDGET (menu));
|
||||
gtk_widget_show_all (menu);
|
||||
}
|
||||
|
||||
void
|
||||
setup_xkb_tabs (GladeXML * dialog, GConfChangeSet * changeset)
|
||||
{
|
||||
GObject *peditor;
|
||||
|
||||
XklConfigInit ();
|
||||
XklConfigLoadRegistry ();
|
||||
|
||||
fill_models_option_menu (dialog);
|
||||
|
||||
peditor = gconf_peditor_new_boolean
|
||||
(changeset,
|
||||
(gchar *) GSWITCHIT_CONFIG_XKB_KEY_OVERRIDE_SETTINGS,
|
||||
WID ("xkb_use_custom_config"), NULL);
|
||||
|
||||
gconf_peditor_widget_set_guard (GCONF_PROPERTY_EDITOR (peditor),
|
||||
WID ("xkb_models_box"));
|
||||
gconf_peditor_widget_set_guard (GCONF_PROPERTY_EDITOR (peditor),
|
||||
WID ("xkb_layouts_box"));
|
||||
gconf_peditor_widget_set_guard (GCONF_PROPERTY_EDITOR (peditor),
|
||||
WID ("xkb_options_box"));
|
||||
|
||||
gconf_peditor_new_select_menu
|
||||
(changeset, (gchar *) GSWITCHIT_CONFIG_XKB_KEY_MODEL,
|
||||
WID ("xkb_models"),
|
||||
"conv-to-widget-cb", model_to_widget,
|
||||
"conv-from-widget-cb", model_from_widget, NULL);
|
||||
|
||||
fill_available_layouts_tree (dialog);
|
||||
prepare_selected_layouts_tree (dialog);
|
||||
fill_selected_layouts_tree (dialog);
|
||||
register_layouts_buttons_handlers (dialog);
|
||||
register_layouts_gconf_listener (dialog);
|
||||
|
||||
g_signal_connect (G_OBJECT (WID ("keyboard_dialog")), "destroy",
|
||||
(GCallback) cleanup_xkb_tabs, NULL);
|
||||
}
|
46
capplets/keyboard/gnome-keyboard-properties-xkb.h
Normal file
46
capplets/keyboard/gnome-keyboard-properties-xkb.h
Normal file
|
@ -0,0 +1,46 @@
|
|||
/* -*- mode: c; style: linux -*- */
|
||||
|
||||
/* gnome-keyboard-properties-xkb.h
|
||||
* Copyright (C) 2003 Udaltsoft
|
||||
*
|
||||
* Written by Sergey V. Oudaltsov <svu@users.sf.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
* 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GNOME_KEYBOARD_PROPERTY_XKB_H
|
||||
#define __GNOME_KEYBOARD_PROPERTY_XKB_H
|
||||
|
||||
#include <libxklavier/xklavier_config.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
extern void setup_xkb_tabs (GladeXML * dialog,
|
||||
GConfChangeSet * changeset);
|
||||
|
||||
extern void fill_available_layouts_tree (GladeXML * dialog);
|
||||
|
||||
extern void prepare_selected_layouts_tree (GladeXML * dialog);
|
||||
|
||||
extern void fill_selected_layouts_tree (GladeXML * dialog);
|
||||
|
||||
extern char *xci_desc_to_utf8 (XklConfigItem * ci);
|
||||
|
||||
extern void register_layouts_buttons_handlers (GladeXML * dialog);
|
||||
|
||||
extern void register_layouts_gconf_listener (GladeXML * dialog);
|
||||
|
||||
G_END_DECLS
|
||||
#endif /* __GNOME_KEYBOARD_PROPERTY_XKB_H */
|
371
capplets/keyboard/gnome-keyboard-properties-xkblt.c
Normal file
371
capplets/keyboard/gnome-keyboard-properties-xkblt.c
Normal file
|
@ -0,0 +1,371 @@
|
|||
/* -*- mode: c; style: linux -*- */
|
||||
|
||||
/* gnome-keyboard-properties-xkblt.c
|
||||
* Copyright (C) 2003 Sergey V. Oudaltsov
|
||||
*
|
||||
* Written by: Sergey V. Oudaltsov <svu@users.sourceforge.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
* 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <gnome.h>
|
||||
#include <gconf/gconf-client.h>
|
||||
#include <glade/glade.h>
|
||||
|
||||
#include "libgswitchit/gswitchit_xkb_config.h"
|
||||
|
||||
#include "capplet-util.h"
|
||||
#include "gconf-property-editor.h"
|
||||
#include "activate-settings-daemon.h"
|
||||
#include "capplet-stock-icons.h"
|
||||
#include <../accessibility/keyboard/accessibility-keyboard.h>
|
||||
|
||||
#include "gnome-keyboard-properties-xkb.h"
|
||||
|
||||
static GtkTreeIter current1stLevelIter;
|
||||
static const char *current1stLevelId;
|
||||
static int idx2Select = -1;
|
||||
static int maxSelectedLayouts = -1;
|
||||
|
||||
static void
|
||||
clear_list (GSList * list)
|
||||
{
|
||||
while (list != NULL) {
|
||||
GSList *p = list;
|
||||
list = list->next;
|
||||
g_free (p->data);
|
||||
g_slist_free_1 (p);
|
||||
}
|
||||
}
|
||||
|
||||
static GSList *
|
||||
get_selected_layouts_list ()
|
||||
{
|
||||
return gconf_client_get_list (gconf_client_get_default (),
|
||||
GSWITCHIT_CONFIG_XKB_KEY_LAYOUTS,
|
||||
GCONF_VALUE_STRING, NULL);
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
set_selected_layouts_list (GSList * list)
|
||||
{
|
||||
gconf_client_set_list (gconf_client_get_default (),
|
||||
GSWITCHIT_CONFIG_XKB_KEY_LAYOUTS,
|
||||
GCONF_VALUE_STRING, list, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
add_variant_to_available_layouts_tree (const XklConfigItemPtr
|
||||
configItem, GladeXML * dialog)
|
||||
{
|
||||
GtkWidget *layoutsTree = WID ("xkb_layouts_available");
|
||||
GtkTreeIter iter;
|
||||
GtkTreeStore *treeStore =
|
||||
GTK_TREE_STORE (gtk_tree_view_get_model
|
||||
(GTK_TREE_VIEW (layoutsTree)));
|
||||
const gchar *fullLayoutName =
|
||||
GSwitchItConfigMergeItems (current1stLevelId,
|
||||
configItem->name);
|
||||
char *utfVariantName = xci_desc_to_utf8 (configItem);
|
||||
|
||||
gtk_tree_store_append (treeStore, &iter, ¤t1stLevelIter);
|
||||
gtk_tree_store_set (treeStore, &iter, 0, utfVariantName, 1,
|
||||
fullLayoutName, -1);
|
||||
g_free (utfVariantName);
|
||||
}
|
||||
|
||||
static void
|
||||
add_layout_to_available_layouts_tree (const XklConfigItemPtr
|
||||
configItem, GladeXML * dialog)
|
||||
{
|
||||
GtkWidget *layoutsTree = WID ("xkb_layouts_available");
|
||||
GtkTreeStore *treeStore =
|
||||
GTK_TREE_STORE (gtk_tree_view_get_model
|
||||
(GTK_TREE_VIEW (layoutsTree)));
|
||||
char *utfLayoutName = xci_desc_to_utf8 (configItem);
|
||||
|
||||
gtk_tree_store_append (treeStore, ¤t1stLevelIter, NULL);
|
||||
gtk_tree_store_set (treeStore, ¤t1stLevelIter, 0,
|
||||
utfLayoutName, 1, configItem->name, -1);
|
||||
g_free (utfLayoutName);
|
||||
|
||||
current1stLevelId = configItem->name;
|
||||
|
||||
XklConfigEnumLayoutVariants (configItem->name,
|
||||
(ConfigItemProcessFunc)
|
||||
add_variant_to_available_layouts_tree,
|
||||
dialog);
|
||||
}
|
||||
|
||||
static void
|
||||
enable_disable_layout_buttons (GladeXML * dialog)
|
||||
{
|
||||
GtkWidget *addLayoutBtn = WID ("xkb_layouts_add");
|
||||
GtkWidget *delLayoutBtn = WID ("xkb_layouts_remove");
|
||||
GtkWidget *upLayoutBtn = WID ("xkb_layouts_up");
|
||||
GtkWidget *dnLayoutBtn = WID ("xkb_layouts_down");
|
||||
GtkWidget *availableLayoutsTree = WID ("xkb_layouts_available");
|
||||
GtkWidget *selectedLayoutsTree = WID ("xkb_layouts_selected");
|
||||
|
||||
GtkTreeSelection *aSelection =
|
||||
gtk_tree_view_get_selection (GTK_TREE_VIEW
|
||||
(availableLayoutsTree));
|
||||
const int nSelectedAvailableLayouts =
|
||||
gtk_tree_selection_count_selected_rows (aSelection);
|
||||
GtkTreeSelection *sSelection =
|
||||
gtk_tree_view_get_selection (GTK_TREE_VIEW
|
||||
(selectedLayoutsTree));
|
||||
const int nSelectedSelectedLayouts =
|
||||
gtk_tree_selection_count_selected_rows (sSelection);
|
||||
gboolean canMoveUp = FALSE;
|
||||
gboolean canMoveDn = FALSE;
|
||||
GtkTreeIter iter;
|
||||
GtkTreeModel *selectedLayoutsModel = gtk_tree_view_get_model
|
||||
(GTK_TREE_VIEW (selectedLayoutsTree));
|
||||
const int nSelectedLayouts =
|
||||
gtk_tree_model_iter_n_children (selectedLayoutsModel,
|
||||
NULL);
|
||||
|
||||
gtk_widget_set_sensitive (addLayoutBtn,
|
||||
(nSelectedAvailableLayouts > 0)
|
||||
&& (nSelectedLayouts <
|
||||
maxSelectedLayouts));
|
||||
gtk_widget_set_sensitive (delLayoutBtn,
|
||||
nSelectedSelectedLayouts > 0);
|
||||
|
||||
if (gtk_tree_selection_get_selected
|
||||
(sSelection, &selectedLayoutsModel, &iter)) {
|
||||
GtkTreePath *path =
|
||||
gtk_tree_model_get_path (selectedLayoutsModel,
|
||||
&iter);
|
||||
if (path != NULL) {
|
||||
int *indices = gtk_tree_path_get_indices (path);
|
||||
int idx = indices[0];
|
||||
canMoveUp = idx > 0;
|
||||
canMoveDn = idx < (nSelectedLayouts - 1);
|
||||
gtk_tree_path_free (path);
|
||||
}
|
||||
}
|
||||
gtk_widget_set_sensitive (upLayoutBtn, canMoveUp);
|
||||
gtk_widget_set_sensitive (dnLayoutBtn, canMoveDn);
|
||||
}
|
||||
|
||||
void
|
||||
prepare_selected_layouts_tree (GladeXML * dialog)
|
||||
{
|
||||
GtkListStore *listStore =
|
||||
gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_STRING);
|
||||
GtkWidget *treeView = WID ("xkb_layouts_selected");
|
||||
GtkCellRenderer *renderer =
|
||||
GTK_CELL_RENDERER (gtk_cell_renderer_text_new ());
|
||||
GtkTreeViewColumn *column =
|
||||
gtk_tree_view_column_new_with_attributes (NULL,
|
||||
renderer,
|
||||
"text",
|
||||
0,
|
||||
NULL);
|
||||
GtkTreeSelection *selection =
|
||||
gtk_tree_view_get_selection (GTK_TREE_VIEW (treeView));
|
||||
gtk_tree_view_set_model (GTK_TREE_VIEW (treeView),
|
||||
GTK_TREE_MODEL (listStore));
|
||||
gtk_tree_view_append_column (GTK_TREE_VIEW (treeView), column);
|
||||
g_signal_connect_swapped (G_OBJECT (selection), "changed",
|
||||
G_CALLBACK
|
||||
(enable_disable_layout_buttons), dialog);
|
||||
maxSelectedLayouts =
|
||||
XklMultipleLayoutsSupported ()? XkbNumKbdGroups : 1;
|
||||
}
|
||||
|
||||
void
|
||||
fill_selected_layouts_tree (GladeXML * dialog)
|
||||
{
|
||||
GSList *layouts = get_selected_layouts_list ();
|
||||
GSList *curLayout;
|
||||
GtkListStore *listStore =
|
||||
GTK_LIST_STORE (gtk_tree_view_get_model
|
||||
(GTK_TREE_VIEW
|
||||
(WID ("xkb_layouts_selected"))));
|
||||
gtk_list_store_clear (listStore);
|
||||
|
||||
for (curLayout = layouts; curLayout != NULL;
|
||||
curLayout = curLayout->next) {
|
||||
GtkTreeIter iter;
|
||||
char *l, *sl, *v, *sv;
|
||||
const char *visible = (char *) curLayout->data;
|
||||
gtk_list_store_append (listStore, &iter);
|
||||
if (GSwitchItConfigGetDescriptions
|
||||
(curLayout->data, &sl, &l, &sv, &v))
|
||||
visible = GSwitchItConfigFormatFullLayout (l, v);
|
||||
gtk_list_store_set (listStore, &iter,
|
||||
0, visible, 1, curLayout->data, -1);
|
||||
}
|
||||
|
||||
clear_list (layouts);
|
||||
enable_disable_layout_buttons (dialog);
|
||||
if (idx2Select != -1) {
|
||||
GtkTreeSelection *selection =
|
||||
gtk_tree_view_get_selection ((GTK_TREE_VIEW
|
||||
(WID
|
||||
("xkb_layouts_selected"))));
|
||||
GtkTreePath *path =
|
||||
gtk_tree_path_new_from_indices (idx2Select, -1);
|
||||
gtk_tree_selection_select_path (selection, path);
|
||||
gtk_tree_path_free (path);
|
||||
idx2Select = -1;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
fill_available_layouts_tree (GladeXML * dialog)
|
||||
{
|
||||
GtkTreeStore *treeStore =
|
||||
gtk_tree_store_new (2, G_TYPE_STRING, G_TYPE_STRING);
|
||||
GtkWidget *treeView = WID ("xkb_layouts_available");
|
||||
GtkCellRenderer *renderer =
|
||||
GTK_CELL_RENDERER (gtk_cell_renderer_text_new ());
|
||||
GtkTreeViewColumn *column =
|
||||
gtk_tree_view_column_new_with_attributes (NULL,
|
||||
renderer,
|
||||
"text",
|
||||
0,
|
||||
NULL);
|
||||
GtkTreeSelection *selection =
|
||||
gtk_tree_view_get_selection (GTK_TREE_VIEW (treeView));
|
||||
|
||||
gtk_tree_view_set_model (GTK_TREE_VIEW (treeView),
|
||||
GTK_TREE_MODEL (treeStore));
|
||||
gtk_tree_view_append_column (GTK_TREE_VIEW (treeView), column);
|
||||
|
||||
XklConfigEnumLayouts ((ConfigItemProcessFunc)
|
||||
add_layout_to_available_layouts_tree,
|
||||
dialog);
|
||||
|
||||
g_signal_connect_swapped (G_OBJECT (selection), "changed",
|
||||
G_CALLBACK
|
||||
(enable_disable_layout_buttons), dialog);
|
||||
}
|
||||
|
||||
static void
|
||||
add_selected_layout (GtkWidget * button, GladeXML * dialog)
|
||||
{
|
||||
GtkTreeSelection *selection =
|
||||
gtk_tree_view_get_selection (GTK_TREE_VIEW
|
||||
(WID ("xkb_layouts_available")));
|
||||
GtkTreeIter selectedIter;
|
||||
GtkTreeModel *model;
|
||||
if (gtk_tree_selection_get_selected
|
||||
(selection, &model, &selectedIter)) {
|
||||
gchar *id;
|
||||
GSList *layoutsList = get_selected_layouts_list ();
|
||||
gtk_tree_model_get (model, &selectedIter, 1, &id, -1);
|
||||
layoutsList = g_slist_append (layoutsList, id);
|
||||
set_selected_layouts_list (layoutsList);
|
||||
clear_list (layoutsList);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
move_selected_layout (GladeXML * dialog, int offset)
|
||||
{
|
||||
GtkTreeSelection *selection =
|
||||
gtk_tree_view_get_selection (GTK_TREE_VIEW
|
||||
(WID ("xkb_layouts_selected")));
|
||||
GtkTreeIter selectedIter;
|
||||
GtkTreeModel *model;
|
||||
if (gtk_tree_selection_get_selected
|
||||
(selection, &model, &selectedIter)) {
|
||||
GSList *layoutsList = get_selected_layouts_list ();
|
||||
GtkTreePath *path = gtk_tree_model_get_path (model,
|
||||
&selectedIter);
|
||||
if (path != NULL) {
|
||||
int *indices = gtk_tree_path_get_indices (path);
|
||||
char *id = NULL;
|
||||
GSList *node2Remove =
|
||||
g_slist_nth (layoutsList, indices[0]);
|
||||
|
||||
layoutsList =
|
||||
g_slist_remove_link (layoutsList, node2Remove);
|
||||
|
||||
id = (char *) node2Remove->data;
|
||||
g_slist_free_1 (node2Remove);
|
||||
|
||||
if (offset == 0)
|
||||
g_free (id);
|
||||
else {
|
||||
layoutsList =
|
||||
g_slist_insert (layoutsList, id,
|
||||
indices[0] + offset);
|
||||
idx2Select = indices[0] + offset;
|
||||
}
|
||||
|
||||
set_selected_layouts_list (layoutsList);
|
||||
gtk_tree_path_free (path);
|
||||
}
|
||||
clear_list (layoutsList);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
remove_selected_layout (GtkWidget * button, GladeXML * dialog)
|
||||
{
|
||||
move_selected_layout (dialog, 0);
|
||||
}
|
||||
|
||||
static void
|
||||
up_selected_layout (GtkWidget * button, GladeXML * dialog)
|
||||
{
|
||||
move_selected_layout (dialog, -1);
|
||||
}
|
||||
|
||||
static void
|
||||
down_selected_layout (GtkWidget * button, GladeXML * dialog)
|
||||
{
|
||||
move_selected_layout (dialog, +1);
|
||||
}
|
||||
|
||||
void
|
||||
register_layouts_buttons_handlers (GladeXML * dialog)
|
||||
{
|
||||
g_signal_connect (G_OBJECT (WID ("xkb_layouts_add")), "clicked",
|
||||
G_CALLBACK (add_selected_layout), dialog);
|
||||
g_signal_connect (G_OBJECT (WID ("xkb_layouts_remove")), "clicked",
|
||||
G_CALLBACK (remove_selected_layout), dialog);
|
||||
g_signal_connect (G_OBJECT (WID ("xkb_layouts_up")), "clicked",
|
||||
G_CALLBACK (up_selected_layout), dialog);
|
||||
g_signal_connect (G_OBJECT (WID ("xkb_layouts_down")), "clicked",
|
||||
G_CALLBACK (down_selected_layout), dialog);
|
||||
}
|
||||
|
||||
static void
|
||||
update_layouts_list (GConfClient * client,
|
||||
guint cnxn_id, GConfEntry * entry, GladeXML * dialog)
|
||||
{
|
||||
fill_selected_layouts_tree (dialog);
|
||||
}
|
||||
|
||||
void
|
||||
register_layouts_gconf_listener (GladeXML * dialog)
|
||||
{
|
||||
gconf_client_notify_add (gconf_client_get_default (),
|
||||
GSWITCHIT_CONFIG_XKB_KEY_LAYOUTS,
|
||||
(GConfClientNotifyFunc)
|
||||
update_layouts_list, dialog, NULL, NULL);
|
||||
}
|
|
@ -38,6 +38,8 @@
|
|||
#include "capplet-stock-icons.h"
|
||||
#include <../accessibility/keyboard/accessibility-keyboard.h>
|
||||
|
||||
#include "gnome-keyboard-properties-xkb.h"
|
||||
|
||||
enum
|
||||
{
|
||||
RESPONSE_APPLY = 1,
|
||||
|
@ -164,6 +166,8 @@ setup_dialog (GladeXML *dialog,
|
|||
gconf_peditor_new_boolean
|
||||
(changeset, "/desktop/gnome/typing_break/allow_postpone", WID ("break_postponement_toggle"), NULL);
|
||||
g_signal_connect (G_OBJECT (WID ("keyboard_dialog")), "response", (GCallback) dialog_response, changeset);
|
||||
|
||||
setup_xkb_tabs(dialog,changeset);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
|
||||
|
||||
<glade-interface>
|
||||
<requires lib="gnome"/>
|
||||
|
||||
<widget class="GtkDialog" id="keyboard_dialog">
|
||||
<property name="border_width">5</property>
|
||||
|
@ -781,6 +782,7 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Lock screen after a certain duration to help prevent repetitive keyboard use injuries</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label" translatable="yes"><b>_Lock screen to enforce typing break</b></property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="active">False</property>
|
||||
|
@ -1105,6 +1107,477 @@
|
|||
<property name="type">tab</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox33">
|
||||
<property name="border_width">12</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox34">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">6</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkCheckButton" id="xkb_use_custom_config">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label" translatable="yes">_Ignore system configuration</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="active">False</property>
|
||||
<property name="inconsistent">False</property>
|
||||
<property name="draw_indicator">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHBox" id="xkb_models_box">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">12</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label48">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Keyboard _model:</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
<property name="mnemonic_widget">xkb_models</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkOptionMenu" id="xkb_models">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="history">-1</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="xkb_layouts_box">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">6</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label49">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">_Layouts:</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHBox" id="xkb_layouts_panels">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">6</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkScrolledWindow" id="scrolledwindow1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||
<property name="shadow_type">GTK_SHADOW_NONE</property>
|
||||
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkTreeView" id="xkb_layouts_selected">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="headers_visible">False</property>
|
||||
<property name="rules_hint">False</property>
|
||||
<property name="reorderable">False</property>
|
||||
<property name="enable_search">True</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox35">
|
||||
<property name="border_width">6</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">12</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="xkb_layouts_add">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label">gtk-add</property>
|
||||
<property name="use_stock">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="xkb_layouts_remove">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label">gtk-remove</property>
|
||||
<property name="use_stock">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="xkb_layouts_up">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label">gtk-go-up</property>
|
||||
<property name="use_stock">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="xkb_layouts_down">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label">gtk-go-down</property>
|
||||
<property name="use_stock">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkScrolledWindow" id="scrolledwindow2">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||
<property name="shadow_type">GTK_SHADOW_NONE</property>
|
||||
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkTreeView" id="xkb_layouts_available">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="headers_visible">False</property>
|
||||
<property name="rules_hint">False</property>
|
||||
<property name="reorderable">False</property>
|
||||
<property name="enable_search">True</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="tab_expand">False</property>
|
||||
<property name="tab_fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label46">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Core Layout Configuration</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="type">tab</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox36">
|
||||
<property name="border_width">12</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="xkb_options_box">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">6</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label50">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Layout _options:</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHBox" id="xkb_options_panels">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">6</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkScrolledWindow" id="scrolledwindow3">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||
<property name="shadow_type">GTK_SHADOW_NONE</property>
|
||||
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkTreeView" id="treeview3">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="headers_visible">False</property>
|
||||
<property name="rules_hint">False</property>
|
||||
<property name="reorderable">False</property>
|
||||
<property name="enable_search">True</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox38">
|
||||
<property name="border_width">6</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">12</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button9">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label">gtk-add</property>
|
||||
<property name="use_stock">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button10">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label">gtk-remove</property>
|
||||
<property name="use_stock">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkScrolledWindow" id="scrolledwindow4">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||
<property name="shadow_type">GTK_SHADOW_NONE</property>
|
||||
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkTreeView" id="treeview4">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="headers_visible">False</property>
|
||||
<property name="rules_hint">False</property>
|
||||
<property name="reorderable">False</property>
|
||||
<property name="enable_search">True</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="tab_expand">False</property>
|
||||
<property name="tab_fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label47">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Advanced Layout Options</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="type">tab</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
|
|
Loading…
Add table
Reference in a new issue