]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkrecentchooserwidget.c
GtkBubbleWindow: rework how drawing is done
[~andy/gtk] / gtk / gtkrecentchooserwidget.c
index 44169a44ea00eb60eda261f355566103e9f4b7c8..64f6df660f89247ad204b61cb0fe40f5baa13203 100644 (file)
@@ -13,9 +13,7 @@
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
 #include "config.h"
@@ -23,9 +21,8 @@
 #include "gtkrecentchooserwidget.h"
 #include "gtkrecentchooserdefault.h"
 #include "gtkrecentchooserutils.h"
+#include "gtkorientable.h"
 #include "gtktypebuiltins.h"
-#include "gtkalias.h"
-
 
 /**
  * SECTION:gtkrecentchooserwidget
@@ -70,7 +67,7 @@ static void     gtk_recent_chooser_widget_finalize     (GObject               *o
 
 G_DEFINE_TYPE_WITH_CODE (GtkRecentChooserWidget,
                         gtk_recent_chooser_widget,
-                        GTK_TYPE_VBOX,
+                        GTK_TYPE_BOX,
                         G_IMPLEMENT_INTERFACE (GTK_TYPE_RECENT_CHOOSER,
                                                _gtk_recent_chooser_delegate_iface_init))
 
@@ -94,7 +91,10 @@ static void
 gtk_recent_chooser_widget_init (GtkRecentChooserWidget *widget)
 {
   widget->priv = G_TYPE_INSTANCE_GET_PRIVATE (widget, GTK_TYPE_RECENT_CHOOSER_WIDGET,
-                                             GtkRecentChooserWidgetPrivate);
+                                              GtkRecentChooserWidgetPrivate);
+
+  gtk_orientable_set_orientation (GTK_ORIENTABLE (widget),
+                                  GTK_ORIENTATION_VERTICAL);
 }
 
 static GObject *
@@ -208,6 +208,3 @@ gtk_recent_chooser_widget_new_for_manager (GtkRecentManager *manager)
                       "recent-manager", manager,
                       NULL);
 }
-
-#define __GTK_RECENT_CHOOSER_WIDGET_C__
-#include "gtkaliasdef.c"