[uim-commit] r1177 - trunk/gtk
tkng at freedesktop.org
tkng at freedesktop.org
Wed Aug 10 10:52:51 EST 2005
Author: tkng
Date: 2005-08-09 17:52:47 -0700 (Tue, 09 Aug 2005)
New Revision: 1177
Modified:
trunk/gtk/uim-cand-win-gtk.c
Log:
* gtk/uim-cand-win-gtk.c:
-(uim_cand_win_gtk_init): Frame appended.
Modified: trunk/gtk/uim-cand-win-gtk.c
===================================================================
--- trunk/gtk/uim-cand-win-gtk.c 2005-08-09 22:46:01 UTC (rev 1176)
+++ trunk/gtk/uim-cand-win-gtk.c 2005-08-10 00:52:47 UTC (rev 1177)
@@ -139,6 +139,7 @@
{
GtkCellRenderer *renderer;
GtkTreeViewColumn *column;
+ GtkWidget *frame;
GtkWidget *vbox;
GtkTreeSelection *selection;
@@ -173,9 +174,12 @@
gtk_container_add(GTK_CONTAINER(cwin->scrolled_window), cwin->view);
gtk_box_pack_start(GTK_BOX(vbox), cwin->num_label, FALSE, FALSE, 0);
- gtk_container_add(GTK_CONTAINER(cwin), vbox);
- gtk_container_set_border_width(GTK_CONTAINER(cwin), 1);
+ frame = gtk_frame_new(NULL);
+ gtk_container_add(GTK_CONTAINER(frame), vbox);
+ gtk_container_add(GTK_CONTAINER(cwin), frame);
+ gtk_container_set_border_width(GTK_CONTAINER(cwin), 0);
+
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW(cwin->view));
gtk_tree_selection_set_select_function(selection,
@@ -186,6 +190,7 @@
G_CALLBACK(tree_selection_changed), cwin);
renderer = gtk_cell_renderer_text_new();
+
column = gtk_tree_view_column_new_with_attributes("No",
renderer,
"text", COLUMN_HEADING,
@@ -214,6 +219,7 @@
gtk_widget_show(cwin->view);
gtk_widget_show(cwin->num_label);
gtk_widget_show(vbox);
+ gtk_widget_show(frame);
gtk_widget_set_size_request(cwin->num_label, DEFAULT_MIN_WINDOW_WIDTH, -1);
gtk_window_set_default_size(GTK_WINDOW(cwin), DEFAULT_MIN_WINDOW_WIDTH, -1);
More information about the uim-commit
mailing list