Commit Graph

668 Commits

Author SHA1 Message Date
Matthias Clasen
915d70c561 Update copyright year 2013-11-09 13:39:48 -05:00
William Jon McCann
0c46807e43 widget-factory: polish the layout
Add a bit more breathing room and put similar widgets together.
2013-11-08 13:25:14 -05:00
Rico Tzschichholz
6ce966f24b demo: Make sure to add gtk3-widget-factory.desktop to tarball
In addition to 721cdfd966
2013-11-07 23:15:55 +01:00
Rico Tzschichholz
e2ab11ac6e demo: Make sure to add gtk3-demo.desktop to tarball
In addition to fc71414ada
2013-11-07 18:28:23 +01:00
Jasper St. Pierre
dd19c9fe81 widget-factory: Update copyright in about dialog 2013-11-06 12:51:53 -05:00
Jasper St. Pierre
4aa101b2c6 widget-factory: Make the About dialog actually transient
It's an app action, not a window action.
2013-11-06 12:50:40 -05:00
Matthias Clasen
5f9331519a Use a big icon in the stack example
We used a 256x256 before. Keep doing that.
2013-11-05 21:47:29 -05:00
William Jon McCann
46cb6e8291 widget-factory: use new icon instead of gtk logo 2013-11-05 16:39:50 -05:00
William Jon McCann
628abd4e87 widget-factory: add icon 2013-11-05 16:35:05 -05:00
William Jon McCann
cdc2f07a1e demo: use the installed named icon 2013-11-05 15:31:11 -05:00
William Jon McCann
fc71414ada demo: Add desktop file 2013-11-05 14:14:58 -05:00
William Jon McCann
28f49f3a7e demo: add icon 2013-11-05 14:14:57 -05:00
William Jon McCann
721cdfd966 widget-factory: add desktop file for widget factory 2013-11-05 13:18:55 -05:00
William Jon McCann
42acaac7d6 widget-factory: port to GtkApplication and GtkHeaderBar 2013-11-05 08:23:17 -05:00
William Jon McCann
3e9b58efe6 widget-factory: Add a pulsing progress bar 2013-11-04 12:22:56 -05:00
Jasper St. Pierre
0280ef3413 Make gtk-demo use the newer app icon 2013-10-07 16:30:33 -04:00
Matthias Clasen
9be38e67e3 Cosmetics
Make the gtk-demo listbox example follow others in window
title style.
2013-10-07 00:05:47 -04:00
Matthias Clasen
98b39ce911 Add a flow box example to gtk-demo 2013-10-07 00:05:21 -04:00
Benjamin Otte
8a85371901 widget-factory: Remove accel-groups
GtkMenuItem doesn't have accel groups anymore.
2013-10-06 22:24:13 +02:00
William Jon McCann
2bb01c6cc8 demo: Show popup menu on tabs
https://bugzilla.gnome.org/show_bug.cgi?id=707920
2013-10-02 10:51:15 -04:00
Chun-wei Fan
a3519988f5 demos/gtk-demo/toolpalette.c: Avoid C99ism
Avoid declaring variable at the middle of the block
2013-09-23 16:39:25 +08:00
Murray Cumming
3b0f71f5ce demos: Fix performance in GtkToolPalette demo.
gtk_icon_theme_list_icons() now gets so many icons that the demo
was unusable. Limit it to 10 per group (theme context).
2013-09-16 14:10:52 +02:00
Murray Cumming
98ca9a865f GtkWidget: Improve drag-leave and drag-data-received docs.
* gtk/gtkwidget.c: drag-leave signal: Document that it is called before
      drag-drop.
      drag-data-received signal: Document that it is up to the application
      to know why the data was requested (e.g. drag motion or drop).
    * demos/gtk-demo/toolpalette.c: interactive_canvas_drag_drop():
      Do not transform the drop_item created in the drag-motion handler.
      Instead caused drag-data-received to be called, remembering why,
      and create a new item there.
      interactive_canvas_drag_leave(): Remove the idle-handler hack,
      now that we do not need to keep the drag-motion drop_item alive until
      the drop.

I noticed that this patch was sitting in bug #605611 from 2009
though it had been approved. I do not remember much about why I
created it.
2013-09-16 14:06:14 +02:00
William Jon McCann
041b0e1861 demo: add a multi-line infobar example 2013-08-03 15:15:12 +02:00
Matthias Clasen
c636b21aec Avoid a compiler warning 2013-08-01 10:55:49 +02:00
Matthias Clasen
a87648c1b6 gtk3-demo: Improve the infobar demo
Add buttons that allow to show and hide each info bar.
2013-07-31 19:04:42 +02:00
Matthias Clasen
d1a91671e4 gtk3-demo: Adapt to GtkSearchEntry api changes
Connect to ::search-changed instead of ::changed.
2013-07-28 21:51:45 -04:00
Matthias Clasen
cda60c3c40 Another round of template binding api changes
We rename the gtk_widget_class_bind_template_child{_internal}
macros by appending a _private to their name. Otherwise, it
would be too magic to pass the 'public' names as arguments,
but affect a member of the Private struct. At the same time,

Add two new macros with the old names,
gtk_widget_class_bind_template_child{_internal} that operate
on members of the instance struct.
2013-07-26 16:29:12 -04:00
Emmanuele Bassi
89ae3524a3 Rename the widget template API
The macros and functions are inconsistently named, and are not tied to
the "template" concept - to the point that it seems plausible to use
them without setting the template.

The new naming scheme is as follows:

  gtk_widget_class_bind_template_child_full
  gtk_widget_class_bind_template_callback_full

With the convenience macros:

  gtk_widget_class_bind_template_child
  gtk_widget_class_bind_template_child_internal
  gtk_widget_class_bind_template_callback

https://bugzilla.gnome.org/show_bug.cgi?id=700898
https://bugzilla.gnome.org/show_bug.cgi?id=700896
2013-07-26 13:52:15 -04:00
Alexander Larsson
a8e84545d1 widget: Use a real offset in gtk_widget_class_automate_child
Using an offset from the struct means you can have children in
both the public and private (via G_PRIVATE_OFFSET) parts of the
instance. It also matches the new private macros nicer.

https://bugzilla.gnome.org/show_bug.cgi?id=702563

Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
2013-07-26 08:41:09 -04:00
William Jon McCann
fbf0b29813 demo: add a close button to the info bar demo
https://bugzilla.gnome.org/show_bug.cgi?id=704274
2013-07-24 17:01:42 -04:00
Emmanuele Bassi
e7461ea67b gtk-demo/builder: Re-enable deprecated symbols
The demo uses GtkAction.
2013-07-20 10:55:27 +01:00
Emmanuele Bassi
76df3ba7d0 gtk-demo: Use the new macros for adding instance private data
https://bugzilla.gnome.org/show_bug.cgi?id=702996
2013-07-09 09:30:02 +01:00
Matthias Clasen
38b7159c39 gtk-demo: Properly cleanup the revealer demo
We forgot to remove the timeout.
2013-07-04 17:53:40 -04:00
Alexander Larsson
6a4f82a1f4 gtk-demo: Add demo of hidpi css assets via -gtk-scaled() 2013-07-03 14:39:25 +02:00
William Jon McCann
6f83657288 Fix the build
Remove references to removed files
2013-06-30 11:30:37 -04:00
William Jon McCann
32ce8fa60a Remove deprecated UIManager from the demo 2013-06-30 11:19:50 -04:00
Matthias Clasen
c6d7540508 Trivial rewording
Make the listbox demo follow the naming convention of the
other demos.
2013-06-28 16:01:44 -04:00
Benjamin Otte
7e69eb8ffd gtk-demo: Fix compile warnings 2013-06-26 15:51:31 +02:00
Benjamin Otte
a35102aa45 gtk-demo: Remove unused variable 2013-06-26 15:51:31 +02:00
William Jon McCann
708dd8cc52 Remove usage of stock APIs in demo
With the exception of GtkAction.
2013-06-24 14:50:01 -04:00
William Jon McCann
29f9305333 Don't use stock APIs in the widget factory 2013-06-24 14:50:01 -04:00
Alexander Larsson
b18c938b14 gtk-demo: Add GtkListBox demo 2013-06-18 16:10:22 +02:00
Bastien Nocera
dbbea8b97e Add GtkSearchBar widget
This widget is a toolbar that will popup automatically when
searches should be started, and dismissed when they are finished.

https://bugzilla.gnome.org/show_bug.cgi?id=700787
2013-05-31 17:09:11 +02:00
Bastien Nocera
51e238653d GtkSearchEntry: Delay the changed signal by default
Emit the "changed" signal after 150 msecs, so that searching
through big lists, or doing online searches feels more responsive.

This is something already done in various applications to make
search-as-you type more responsive (gnome-shell, gnome-documents,
gnome-control-center, etc.). The 150 msecs is the value currently
used by gnome-shell, so keep it (invisibly) consistent.

https://bugzilla.gnome.org/show_bug.cgi?id=700229
2013-05-17 19:45:46 +02:00
Benjamin Otte
ecaf09c918 build: remove --disable-rebuilds
It's unused and was only useful when perl wasn't installed. But perl is
a dependency of glib these days, so it's useless.
2013-05-09 19:09:50 +02:00
Matthias Clasen
265e617f0a gtk-demo: Include config.h first
If config.h is included after gdkversionmacros.h, _GDK_EXTERN
gets redefined and cpp doesn't like that.
2013-05-05 15:38:46 -04:00
Matthias Clasen
0b3461ff1b gtk-demo: Don't include config.h needlessly
It is not needed here.
2013-05-05 15:38:46 -04:00
Matthias Clasen
661f24736b widget-factory: Add new widgets
Add GtkStack and GtkRevealer to the second page in
gtk3-widget-factory.
2013-04-23 17:39:46 -04:00
Matthias Clasen
86688c6fde Add a revealer example to gtk-demo
I tried to make a 'revealer ballet'. Judge for yourself if
I succeeded.
2013-04-22 12:42:39 -04:00