Commit 9c585e92 authored by Tim Janik's avatar Tim Janik Committed by Tim Janik

don't shut down the tooltip on expose events.

Sat Apr 11 05:51:22 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtktooltips.c (gtk_tooltips_event_handler): don't shut down the
                tooltip on expose events.

                        * gtk/testgtk.c (create_progress_bar): add an example tooltip.
parent 0e3d5070
Sat Apr 11 05:51:22 1998 Tim Janik <timj@gtk.org>
* gtk/gtktooltips.c (gtk_tooltips_event_handler): don't shut down the
tooltip on expose events.
* gtk/testgtk.c (create_progress_bar): add an example tooltip.
Fri Apr 10 00:10:16 1998 Owen Taylor <owt1@cornell.edu>
* README/INSTALL: Extended for the 1.0 release.
......
Sat Apr 11 05:51:22 1998 Tim Janik <timj@gtk.org>
* gtk/gtktooltips.c (gtk_tooltips_event_handler): don't shut down the
tooltip on expose events.
* gtk/testgtk.c (create_progress_bar): add an example tooltip.
Fri Apr 10 00:10:16 1998 Owen Taylor <owt1@cornell.edu>
* README/INSTALL: Extended for the 1.0 release.
......
Sat Apr 11 05:51:22 1998 Tim Janik <timj@gtk.org>
* gtk/gtktooltips.c (gtk_tooltips_event_handler): don't shut down the
tooltip on expose events.
* gtk/testgtk.c (create_progress_bar): add an example tooltip.
Fri Apr 10 00:10:16 1998 Owen Taylor <owt1@cornell.edu>
* README/INSTALL: Extended for the 1.0 release.
......
Sat Apr 11 05:51:22 1998 Tim Janik <timj@gtk.org>
* gtk/gtktooltips.c (gtk_tooltips_event_handler): don't shut down the
tooltip on expose events.
* gtk/testgtk.c (create_progress_bar): add an example tooltip.
Fri Apr 10 00:10:16 1998 Owen Taylor <owt1@cornell.edu>
* README/INSTALL: Extended for the 1.0 release.
......
Sat Apr 11 05:51:22 1998 Tim Janik <timj@gtk.org>
* gtk/gtktooltips.c (gtk_tooltips_event_handler): don't shut down the
tooltip on expose events.
* gtk/testgtk.c (create_progress_bar): add an example tooltip.
Fri Apr 10 00:10:16 1998 Owen Taylor <owt1@cornell.edu>
* README/INSTALL: Extended for the 1.0 release.
......
Sat Apr 11 05:51:22 1998 Tim Janik <timj@gtk.org>
* gtk/gtktooltips.c (gtk_tooltips_event_handler): don't shut down the
tooltip on expose events.
* gtk/testgtk.c (create_progress_bar): add an example tooltip.
Fri Apr 10 00:10:16 1998 Owen Taylor <owt1@cornell.edu>
* README/INSTALL: Extended for the 1.0 release.
......
Sat Apr 11 05:51:22 1998 Tim Janik <timj@gtk.org>
* gtk/gtktooltips.c (gtk_tooltips_event_handler): don't shut down the
tooltip on expose events.
* gtk/testgtk.c (create_progress_bar): add an example tooltip.
Fri Apr 10 00:10:16 1998 Owen Taylor <owt1@cornell.edu>
* README/INSTALL: Extended for the 1.0 release.
......
......@@ -541,6 +541,7 @@ gtk_tooltips_event_handler (GtkWidget *widget,
switch (event->type)
{
case GDK_MOTION_NOTIFY:
case GDK_EXPOSE:
/* do nothing */
break;
......
......@@ -4768,7 +4768,8 @@ create_progress_bar ()
GtkWidget *vbox;
GtkWidget *pbar;
GtkWidget *label;
GtkTooltips *tooltips;
if (!window)
{
window = gtk_dialog_new ();
......@@ -4780,6 +4781,7 @@ create_progress_bar ()
gtk_window_set_title (GTK_WINDOW (window), "dialog");
gtk_container_border_width (GTK_CONTAINER (window), 0);
tooltips = gtk_tooltips_new();
vbox = gtk_vbox_new (FALSE, 5);
gtk_container_border_width (GTK_CONTAINER (vbox), 10);
......@@ -4793,9 +4795,12 @@ create_progress_bar ()
gtk_widget_show (label);
pbar = gtk_progress_bar_new ();
gtk_widget_set_events (pbar, GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK);
gtk_widget_set_usize (pbar, 200, 20);
gtk_box_pack_start (GTK_BOX (vbox), pbar, TRUE, TRUE, 0);
gtk_widget_show (pbar);
gtk_tooltips_set_tip (tooltips, pbar, "Countdown is progressing yet!", "Secret!");
gtk_tooltips_set_delay (tooltips, 0);
progress_timer = gtk_timeout_add (100, progress_timeout, pbar);
......
......@@ -4768,7 +4768,8 @@ create_progress_bar ()
GtkWidget *vbox;
GtkWidget *pbar;
GtkWidget *label;
GtkTooltips *tooltips;
if (!window)
{
window = gtk_dialog_new ();
......@@ -4780,6 +4781,7 @@ create_progress_bar ()
gtk_window_set_title (GTK_WINDOW (window), "dialog");
gtk_container_border_width (GTK_CONTAINER (window), 0);
tooltips = gtk_tooltips_new();
vbox = gtk_vbox_new (FALSE, 5);
gtk_container_border_width (GTK_CONTAINER (vbox), 10);
......@@ -4793,9 +4795,12 @@ create_progress_bar ()
gtk_widget_show (label);
pbar = gtk_progress_bar_new ();
gtk_widget_set_events (pbar, GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK);
gtk_widget_set_usize (pbar, 200, 20);
gtk_box_pack_start (GTK_BOX (vbox), pbar, TRUE, TRUE, 0);
gtk_widget_show (pbar);
gtk_tooltips_set_tip (tooltips, pbar, "Countdown is progressing yet!", "Secret!");
gtk_tooltips_set_delay (tooltips, 0);
progress_timer = gtk_timeout_add (100, progress_timeout, pbar);
......
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