mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
Remove unused callback to make things compile with
Thu Nov 15 19:47:09 2001 Owen Taylor <otaylor@redhat.com> * demos/gtk-demo/main.c (button_press_event_cb): Remove unused callback to make things compile with gtk_tree_view_path_at_pos_change().
This commit is contained in:
parent
16049019a8
commit
89baa6c002
@ -1,3 +1,9 @@
|
||||
Thu Nov 15 19:47:09 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* demos/gtk-demo/main.c (button_press_event_cb): Remove
|
||||
unused callback to make things compile with
|
||||
gtk_tree_view_path_at_pos_change().
|
||||
|
||||
Thu Nov 15 18:44:33 2001 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
|
||||
|
@ -1,3 +1,9 @@
|
||||
Thu Nov 15 19:47:09 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* demos/gtk-demo/main.c (button_press_event_cb): Remove
|
||||
unused callback to make things compile with
|
||||
gtk_tree_view_path_at_pos_change().
|
||||
|
||||
Thu Nov 15 18:44:33 2001 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
|
||||
|
@ -1,3 +1,9 @@
|
||||
Thu Nov 15 19:47:09 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* demos/gtk-demo/main.c (button_press_event_cb): Remove
|
||||
unused callback to make things compile with
|
||||
gtk_tree_view_path_at_pos_change().
|
||||
|
||||
Thu Nov 15 18:44:33 2001 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
|
||||
|
@ -1,3 +1,9 @@
|
||||
Thu Nov 15 19:47:09 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* demos/gtk-demo/main.c (button_press_event_cb): Remove
|
||||
unused callback to make things compile with
|
||||
gtk_tree_view_path_at_pos_change().
|
||||
|
||||
Thu Nov 15 18:44:33 2001 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
|
||||
|
@ -1,3 +1,9 @@
|
||||
Thu Nov 15 19:47:09 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* demos/gtk-demo/main.c (button_press_event_cb): Remove
|
||||
unused callback to make things compile with
|
||||
gtk_tree_view_path_at_pos_change().
|
||||
|
||||
Thu Nov 15 18:44:33 2001 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
|
||||
|
@ -1,3 +1,9 @@
|
||||
Thu Nov 15 19:47:09 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* demos/gtk-demo/main.c (button_press_event_cb): Remove
|
||||
unused callback to make things compile with
|
||||
gtk_tree_view_path_at_pos_change().
|
||||
|
||||
Thu Nov 15 18:44:33 2001 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
|
||||
|
@ -1,3 +1,9 @@
|
||||
Thu Nov 15 19:47:09 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* demos/gtk-demo/main.c (button_press_event_cb): Remove
|
||||
unused callback to make things compile with
|
||||
gtk_tree_view_path_at_pos_change().
|
||||
|
||||
Thu Nov 15 18:44:33 2001 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
|
||||
|
@ -507,72 +507,6 @@ load_file (const gchar *filename)
|
||||
g_string_free (buffer, TRUE);
|
||||
}
|
||||
|
||||
gboolean
|
||||
button_press_event_cb (GtkTreeView *tree_view,
|
||||
GdkEventButton *event,
|
||||
GtkTreeModel *model)
|
||||
{
|
||||
if (event->type == GDK_2BUTTON_PRESS)
|
||||
{
|
||||
GtkTreePath *path = NULL;
|
||||
|
||||
gtk_tree_view_get_path_at_pos (tree_view,
|
||||
event->window,
|
||||
event->x,
|
||||
event->y,
|
||||
&path,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL);
|
||||
|
||||
if (path)
|
||||
{
|
||||
GtkTreeIter iter;
|
||||
gboolean italic;
|
||||
GDoDemoFunc func;
|
||||
GtkWidget *window;
|
||||
|
||||
gtk_tree_model_get_iter (model, &iter, path);
|
||||
gtk_tree_model_get (GTK_TREE_MODEL (model),
|
||||
&iter,
|
||||
FUNC_COLUMN, &func,
|
||||
ITALIC_COLUMN, &italic,
|
||||
-1);
|
||||
|
||||
if (func)
|
||||
{
|
||||
gtk_tree_store_set (GTK_TREE_STORE (model),
|
||||
&iter,
|
||||
ITALIC_COLUMN, !italic,
|
||||
-1);
|
||||
window = (func) ();
|
||||
if (window != NULL)
|
||||
{
|
||||
CallbackData *cbdata;
|
||||
|
||||
cbdata = g_new (CallbackData, 1);
|
||||
cbdata->model = model;
|
||||
cbdata->path = path;
|
||||
|
||||
g_signal_connect (window, "destroy",
|
||||
G_CALLBACK (window_closed_cb), cbdata);
|
||||
}
|
||||
else
|
||||
{
|
||||
gtk_tree_path_free (path);
|
||||
}
|
||||
}
|
||||
else
|
||||
gtk_tree_path_free (path);
|
||||
}
|
||||
|
||||
g_signal_stop_emission_by_name (tree_view, "button_press_event");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void
|
||||
row_activated_cb (GtkTreeView *tree_view,
|
||||
GtkTreePath *path,
|
||||
|
Loading…
Reference in New Issue
Block a user