Commit e90a4336 authored by Vincent Geddes's avatar Vincent Geddes

Beautify header file, add tooltips for undo history menus.

	* src/glade-project-window.c, src/glade-project-window.h: Beautify
	  header file, add tooltips for undo history menus. 

svn path=/trunk/; revision=1385
parent d6cfd1e4
......@@ -23,6 +23,9 @@
gladeui/Makefile.am: Fix "missing prototype" errors reported by
gcc due to increased warning level (-Wmissing-prototypes). Added
glade-gnome.h with function prototypes as well.
* src/glade-project-window.c, src/glade-project-window.h: Beautify
header file, add tooltips for undo history menus.
2007-06-21 Christian Persch <chpe@gnome.org>
......
......@@ -60,6 +60,8 @@ struct _GladeProjectWindowPrivate
GtkWidget *notebook;
GladeDesignView *active_view;
gint num_tabs;
GtkTooltips *tooltips;
GtkWidget *inspectors_notebook;
......@@ -2273,11 +2275,22 @@ glade_project_window_create (GladeProjectWindow *gpw)
gtk_box_pack_start (GTK_BOX (vbox), toolbar, FALSE, TRUE, 0);
gtk_widget_show (toolbar);
/* tooltips object */
gpw->priv->tooltips = gtk_tooltips_new ();
/* undo/redo buttons */
gpw->priv->undo = gtk_menu_tool_button_new_from_stock (GTK_STOCK_UNDO);
gpw->priv->redo = gtk_menu_tool_button_new_from_stock (GTK_STOCK_REDO);
gtk_widget_show (GTK_WIDGET (gpw->priv->undo));
gtk_widget_show (GTK_WIDGET (gpw->priv->redo));
gtk_menu_tool_button_set_arrow_tooltip (GTK_MENU_TOOL_BUTTON (gpw->priv->undo),
gpw->priv->tooltips,
_("Go back in undo history"),
NULL);
gtk_menu_tool_button_set_arrow_tooltip (GTK_MENU_TOOL_BUTTON (gpw->priv->redo),
gpw->priv->tooltips,
("Go forward in undo history"),
NULL);
sep = gtk_separator_tool_item_new();
gtk_widget_show (GTK_WIDGET (sep));
......
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2007 The GNOME Foundation.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef __GLADE_PROJECT_WINDOW_H__
#define __GLADE_PROJECT_WINDOW_H__
......@@ -13,18 +31,13 @@ G_BEGIN_DECLS
#define GLADE_IS_PROJECT_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GLADE_TYPE_PROJECT_WINDOW))
#define GLADE_PROJECT_WINDOW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GLADE_PROJECT_WINDOW, GladeProjectWindowClass))
typedef struct _GladeProjectWindow GladeProjectWindow;
typedef struct _GladeProjectWindowClass GladeProjectWindowClass;
typedef struct _GladeProjectWindow GladeProjectWindow;
typedef struct _GladeProjectWindowClass GladeProjectWindowClass;
typedef struct _GladeProjectWindowPrivate GladeProjectWindowPrivate;
/* A GladeProjectWindow specifies a loaded glade application.
* it contains pointers to all the components that make up
* the running app. This is (well should be) the only global
* variable in the application.
*/
struct _GladeProjectWindow
{
GladeApp parent;
GladeApp parent_instance;
GladeProjectWindowPrivate *priv;
};
......@@ -34,12 +47,19 @@ struct _GladeProjectWindowClass
GladeAppClass parent_class;
};
GType glade_project_window_get_type (void);
GladeProjectWindow * glade_project_window_new (void);
void glade_project_window_show_all (GladeProjectWindow *gpw);
void glade_project_window_new_project (GladeProjectWindow *gpw);
gboolean glade_project_window_open_project (GladeProjectWindow *gpw, const gchar *path);
GType glade_project_window_get_type (void) G_GNUC_CONST;
GladeProjectWindow *glade_project_window_new (void);
void glade_project_window_show_all (GladeProjectWindow *gpw);
void glade_project_window_new_project (GladeProjectWindow *gpw);
gboolean glade_project_window_open_project (GladeProjectWindow *gpw,
const gchar *path);
void glade_project_window_check_devhelp (GladeProjectWindow *gpw);
G_END_DECLS
#endif /* __GLADE_PROJECT_WINDOW_H__ */
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