[gtk+] tests: Remove refreh button from testtoolbar test
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: Remove refreh button from testtoolbar test
- Date: Tue, 1 Feb 2011 05:34:01 +0000 (UTC)
commit 040b21e7d7b97db426027dd80fa0269506542e57
Author: Benjamin Otte <otte redhat com>
Date: Tue Feb 1 06:29:51 2011 +0100
tests: Remove refreh button from testtoolbar test
It didn't work and did that by using APIs that are about to go away.
tests/testtoolbar.c | 23 -----------------------
1 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/tests/testtoolbar.c b/tests/testtoolbar.c
index f45da9c..38056cd 100644
--- a/tests/testtoolbar.c
+++ b/tests/testtoolbar.c
@@ -24,24 +24,6 @@
#include "prop-editor.h"
static void
-reload_clicked (GtkWidget *widget)
-{
- static GdkAtom atom_rcfiles = GDK_NONE;
-
- GdkEventClient sev;
- int i;
-
- if (!atom_rcfiles)
- atom_rcfiles = gdk_atom_intern("_GTK_READ_RCFILES", FALSE);
-
- for(i = 0; i < 5; i++)
- sev.data.l[i] = 0;
- sev.data_format = 32;
- sev.message_type = atom_rcfiles;
- gdk_event_send_clientmessage_toall ((GdkEvent *) &sev);
-}
-
-static void
change_orientation (GtkWidget *button, GtkWidget *toolbar)
{
GtkWidget *table;
@@ -635,11 +617,6 @@ main (gint argc, gchar **argv)
add_item_to_list (store, item, "-----");
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
- item = gtk_tool_button_new_from_stock (GTK_STOCK_REFRESH);
- add_item_to_list (store, item, "Refresh");
- g_signal_connect (item, "clicked", G_CALLBACK (reload_clicked), NULL);
- gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
-
image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_DIALOG);
item = gtk_tool_item_new ();
gtk_widget_show (image);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]