Commit da22c8c6 authored by Tristan Van Berkom's avatar Tristan Van Berkom

Added MAINTAINERS file.




	* Added MAINTAINERS file.

	* AUTHORS: Added me to authors list

	* src/glade-popup.c: Fixed selection bug (placeholders
	  werent loosing selection when selection changes through
	  the popup).

	* src/glade-project-window.c: Added "Expand all"/"Collapse all" in
	  the widget tree veiw (bug 164740)

	* src/glade-widget.c: Remove redundant paranoia code.
parent 55911215
...@@ -4,3 +4,4 @@ Thanks to : ...@@ -4,3 +4,4 @@ Thanks to :
Michal Palczewski <mpalczew@u.washington.edu> - Widget tree window Michal Palczewski <mpalczew@u.washington.edu> - Widget tree window
Archit Baweja <bighead@users.sourceforge.net> - New widgets, _get_type Archit Baweja <bighead@users.sourceforge.net> - New widgets, _get_type
Shane Butler <shane_b@operamail.com> - Glade Widget signals editor Shane Butler <shane_b@operamail.com> - Glade Widget signals editor
Tristan Van Berkom <tvb@gnome.org> - Non widget support.
2005-03-31 Tristan Van Berkom <tvb@gnome.org>
* Added MAINTAINERS file.
* AUTHORS: Added me to authors list
* src/glade-popup.c: Fixed selection bug (placeholders
werent loosing selection when selection changes through
the popup).
* src/glade-project-window.c: Added "Expand all"/"Collapse all" in
the widget tree veiw (bug 164740)
* src/glade-widget.c: Remove redundant paranoia code.
2005-03-14 Naba Kumar <naba@gnome.org> 2005-03-14 Naba Kumar <naba@gnome.org>
* pixmaps/Makefile.am, * pixmaps/Makefile.am,
......
Tristan Van Berkom is the current glade-3 maintainer.
Email: tristan.van.berkom@gmail.com
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
static void static void
glade_popup_select_cb (GtkMenuItem *item, GladeWidget *widget) glade_popup_select_cb (GtkMenuItem *item, GladeWidget *widget)
{ {
glade_util_clear_selection ();
glade_project_selection_set glade_project_selection_set
(widget->project, glade_widget_get_object (widget), TRUE); (widget->project, glade_widget_get_object (widget), TRUE);
} }
......
...@@ -604,10 +604,19 @@ gpw_hide_widget_tree_on_delete (GtkWidget *widget_tree, gpointer not_used, ...@@ -604,10 +604,19 @@ gpw_hide_widget_tree_on_delete (GtkWidget *widget_tree, gpointer not_used,
return TRUE; return TRUE;
} }
static void
gpw_expand_treeview (GtkButton *button, GtkTreeView *tree)
{
gtk_tree_view_expand_all (tree);
gtk_widget_queue_draw (GTK_WIDGET (tree));
}
static GtkWidget* static GtkWidget*
gpw_create_widget_tree (GladeProjectWindow *gpw) gpw_create_widget_tree (GladeProjectWindow *gpw)
{ {
GtkWidget *widget_tree; GtkWidget *widget_tree, *hbox, *vbox, *expand, *collapse;
GladeProjectView *view; GladeProjectView *view;
GtkWidget *widget_tree_item; GtkWidget *widget_tree_item;
...@@ -615,6 +624,7 @@ gpw_create_widget_tree (GladeProjectWindow *gpw) ...@@ -615,6 +624,7 @@ gpw_create_widget_tree (GladeProjectWindow *gpw)
gtk_window_set_default_size (GTK_WINDOW (widget_tree), gtk_window_set_default_size (GTK_WINDOW (widget_tree),
GLADE_WIDGET_TREE_WIDTH, GLADE_WIDGET_TREE_WIDTH,
GLADE_WIDGET_TREE_HEIGHT); GLADE_WIDGET_TREE_HEIGHT);
gtk_window_set_title (GTK_WINDOW (widget_tree), _("Widget Tree")); gtk_window_set_title (GTK_WINDOW (widget_tree), _("Widget Tree"));
view = glade_project_view_new (GLADE_PROJECT_VIEW_TREE); view = glade_project_view_new (GLADE_PROJECT_VIEW_TREE);
...@@ -623,11 +633,31 @@ gpw_create_widget_tree (GladeProjectWindow *gpw) ...@@ -623,11 +633,31 @@ gpw_create_widget_tree (GladeProjectWindow *gpw)
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (view), gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (view),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_container_add (GTK_CONTAINER (widget_tree), GTK_WIDGET (view));
/* Add control buttons to the treeview. */
hbox = gtk_hbox_new (TRUE, 0);
vbox = gtk_vbox_new (FALSE, 0);
expand = gtk_button_new_with_label (_("Expand all"));
collapse = gtk_button_new_with_label (_("Collapse all"));
gtk_box_pack_start (GTK_BOX (hbox), expand, FALSE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (hbox), collapse, FALSE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (view), TRUE, TRUE, 0);
gtk_container_add (GTK_CONTAINER (widget_tree), vbox);
g_signal_connect (G_OBJECT (widget_tree), "delete_event", g_signal_connect (G_OBJECT (widget_tree), "delete_event",
G_CALLBACK (gpw_hide_widget_tree_on_delete), gpw->priv->item_factory); G_CALLBACK (gpw_hide_widget_tree_on_delete), gpw->priv->item_factory);
g_signal_connect (G_OBJECT (expand), "clicked",
G_CALLBACK (gpw_expand_treeview),
view->tree_view);
g_signal_connect_swapped (G_OBJECT (collapse), "clicked",
G_CALLBACK (gtk_tree_view_collapse_all),
view->tree_view);
widget_tree_item = gtk_item_factory_get_item (gpw->priv->item_factory, widget_tree_item = gtk_item_factory_get_item (gpw->priv->item_factory,
"<main>/View/Widget Tree"); "<main>/View/Widget Tree");
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (widget_tree_item), TRUE); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (widget_tree_item), TRUE);
......
...@@ -1267,15 +1267,10 @@ glade_widget_button_press (GtkWidget *widget, ...@@ -1267,15 +1267,10 @@ glade_widget_button_press (GtkWidget *widget,
} }
else else
{ {
if (glade_project_is_selected glade_util_clear_selection ();
(glade_widget->project, glade_widget->object) == FALSE || glade_project_selection_set (glade_widget->project,
g_list_length (glade_widget->project->selection) != 1)
{
glade_util_clear_selection ();
glade_project_selection_set (glade_widget->project,
glade_widget->object, TRUE); glade_widget->object, TRUE);
handled = TRUE; handled = TRUE;
}
} }
} }
else if (event->button == 3) else if (event->button == 3)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment