mirror of
https://gitlab.gnome.org/GNOME/glade.git
synced 2025-09-08 00:02:20 -04:00
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.
This commit is contained in:
parent
5591121540
commit
da22c8c6d5
1
AUTHORS
1
AUTHORS
@ -4,3 +4,4 @@ Thanks to :
|
||||
Michal Palczewski <mpalczew@u.washington.edu> - Widget tree window
|
||||
Archit Baweja <bighead@users.sourceforge.net> - New widgets, _get_type
|
||||
Shane Butler <shane_b@operamail.com> - Glade Widget signals editor
|
||||
Tristan Van Berkom <tvb@gnome.org> - Non widget support.
|
||||
|
15
ChangeLog
15
ChangeLog
@ -1,3 +1,18 @@
|
||||
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>
|
||||
|
||||
* pixmaps/Makefile.am,
|
||||
|
4
MAINTAINERS
Normal file
4
MAINTAINERS
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
Tristan Van Berkom is the current glade-3 maintainer.
|
||||
|
||||
Email: tristan.van.berkom@gmail.com
|
@ -33,6 +33,7 @@
|
||||
static void
|
||||
glade_popup_select_cb (GtkMenuItem *item, GladeWidget *widget)
|
||||
{
|
||||
glade_util_clear_selection ();
|
||||
glade_project_selection_set
|
||||
(widget->project, glade_widget_get_object (widget), TRUE);
|
||||
}
|
||||
|
@ -604,10 +604,19 @@ gpw_hide_widget_tree_on_delete (GtkWidget *widget_tree, gpointer not_used,
|
||||
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*
|
||||
gpw_create_widget_tree (GladeProjectWindow *gpw)
|
||||
{
|
||||
GtkWidget *widget_tree;
|
||||
GtkWidget *widget_tree, *hbox, *vbox, *expand, *collapse;
|
||||
GladeProjectView *view;
|
||||
GtkWidget *widget_tree_item;
|
||||
|
||||
@ -615,6 +624,7 @@ gpw_create_widget_tree (GladeProjectWindow *gpw)
|
||||
gtk_window_set_default_size (GTK_WINDOW (widget_tree),
|
||||
GLADE_WIDGET_TREE_WIDTH,
|
||||
GLADE_WIDGET_TREE_HEIGHT);
|
||||
|
||||
gtk_window_set_title (GTK_WINDOW (widget_tree), _("Widget Tree"));
|
||||
|
||||
view = glade_project_view_new (GLADE_PROJECT_VIEW_TREE);
|
||||
@ -623,11 +633,31 @@ gpw_create_widget_tree (GladeProjectWindow *gpw)
|
||||
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (view),
|
||||
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_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,
|
||||
"<main>/View/Widget Tree");
|
||||
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (widget_tree_item), TRUE);
|
||||
|
@ -1267,15 +1267,10 @@ glade_widget_button_press (GtkWidget *widget,
|
||||
}
|
||||
else
|
||||
{
|
||||
if (glade_project_is_selected
|
||||
(glade_widget->project, glade_widget->object) == FALSE ||
|
||||
g_list_length (glade_widget->project->selection) != 1)
|
||||
{
|
||||
glade_util_clear_selection ();
|
||||
glade_project_selection_set (glade_widget->project,
|
||||
glade_util_clear_selection ();
|
||||
glade_project_selection_set (glade_widget->project,
|
||||
glade_widget->object, TRUE);
|
||||
handled = TRUE;
|
||||
}
|
||||
handled = TRUE;
|
||||
}
|
||||
}
|
||||
else if (event->button == 3)
|
||||
|
Loading…
x
Reference in New Issue
Block a user