-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented Glade UI in Glade, side effect status bar started working…
… again src/glade-window.c: Use GtkBuilder and GResources to build GladeWindow contents Implemented menu with GtkActions Push tooltip for rencet manager and project actions src/main.c: Register glade GResources src/glade-resources.gresources.xml: Glade Gresource file src/glade.glade: Glade UI GladeWindow, about and preferences dialog src/glade-callbacks.h: callbacks declarations src/Makefile.am: added glade-resource.c to source list configure.ac: bumped version to 3.13 added glib-compile-resources path program glade-rules.mk: added common rules for GResources files
- Loading branch information
Showing
9 changed files
with
1,994 additions
and
1,030 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# In this file you will find generic and usefull rules to | ||
|
||
# GResource rules: | ||
# These rules will create source and header files for any file ending with .gresource.xml | ||
# You will have to manually load the resourse unless the file name ends with | ||
# .static.gresource.xml in which case it will be loaded automatically | ||
|
||
%.h: %.gresource.xml | ||
$(GLIB_COMPILE_RESOURCES) --manual-register --generate $< --target=$@ | ||
%.c: %.gresource.xml | ||
$(GLIB_COMPILE_RESOURCES) --manual-register --generate $< --target=$@ | ||
|
||
# rule for static resources | ||
%.h: %.static.gresource.xml | ||
$(GLIB_COMPILE_RESOURCES) --generate $< --target=$@ | ||
%.c: %.static.gresource.xml | ||
$(GLIB_COMPILE_RESOURCES) --generate $< --target=$@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
/* | ||
* Copyright (C) 2012 Juan Pablo Ugarte. | ||
* | ||
* 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. | ||
* | ||
* Authors: | ||
* Juan Pablo Ugarte <juanpablougarte@gmail.com> | ||
*/ | ||
|
||
#ifndef __GLADE_CALLBACKS_H__ | ||
#define __GLADE_CALLBACKS_H__ | ||
|
||
#include "glade-window.h" | ||
#include <gladeui/glade-design-view.h> | ||
|
||
void on_open_action_activate (GtkAction *action, GladeWindow *window); | ||
void on_save_action_activate (GtkAction *action, GladeWindow *window); | ||
void on_save_as_action_activate (GtkAction *action, GladeWindow *window); | ||
void on_close_action_activate (GtkAction *action, GladeWindow *window); | ||
void on_copy_action_activate (GtkAction *action, GladeWindow *window); | ||
void on_cut_action_activate (GtkAction *action, GladeWindow *window); | ||
void on_paste_action_activate (GtkAction *action, GladeWindow *window); | ||
void on_delete_action_activate (GtkAction *action, GladeWindow *window); | ||
void on_properties_action_activate (GtkAction *action, GladeWindow *window); | ||
void on_undo_action_activate (GtkAction *action, GladeWindow *window); | ||
void on_redo_action_activate (GtkAction *action, GladeWindow *window); | ||
void on_quit_action_activate (GtkAction *action, GladeWindow *window); | ||
void on_about_action_activate (GtkAction *action, GladeWindow *window); | ||
void on_reference_action_activate (GtkAction *action, GladeWindow *window); | ||
|
||
void on_open_recent_action_item_activated (GtkRecentChooser *chooser, | ||
GladeWindow *window); | ||
|
||
void on_use_small_icons_action_toggled (GtkAction *action, GladeWindow *window); | ||
void on_dock_action_toggled (GtkAction *action, GladeWindow *window); | ||
void on_toolbar_visible_action_toggled (GtkAction *action, GladeWindow *window); | ||
void on_statusbar_visible_action_toggled (GtkAction *action, GladeWindow *window); | ||
void on_project_tabs_visible_action_toggled (GtkAction *action, GladeWindow *window); | ||
|
||
void on_palette_appearance_radioaction_changed (GtkRadioAction *action, | ||
GtkRadioAction *current, | ||
GladeWindow *window); | ||
void on_selector_radioaction_changed (GtkRadioAction *action, | ||
GtkRadioAction *current, | ||
GladeWindow *window); | ||
|
||
void on_actiongroup_connect_proxy (GtkActionGroup *action_group, | ||
GtkAction *action, | ||
GtkWidget *proxy, | ||
GladeWindow *window); | ||
void on_actiongroup_disconnect_proxy (GtkActionGroup *action_group, | ||
GtkAction *action, | ||
GtkWidget *proxy, | ||
GladeWindow *window); | ||
|
||
void on_notebook_switch_page (GtkNotebook *notebook, | ||
GtkWidget *page, | ||
guint page_num, | ||
GladeWindow *window); | ||
void on_notebook_tab_added (GtkNotebook *notebook, | ||
GladeDesignView *view, | ||
guint page_num, | ||
GladeWindow *window); | ||
void on_notebook_tab_removed (GtkNotebook *notebook, | ||
GladeDesignView *view, | ||
guint page_num, | ||
GladeWindow *window); | ||
|
||
void on_recent_menu_insert (GtkMenuShell *menu_shell, | ||
GtkWidget *child, | ||
gint position, | ||
GladeWindow *window); | ||
void on_recent_menu_remove (GtkContainer *container, | ||
GtkWidget *widget, | ||
GladeWindow *window); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<gresources> | ||
<gresource prefix="/org/gnome/glade"> | ||
<file compressed="true" preprocess="xml-stripblanks">glade.glade</file> | ||
</gresource> | ||
</gresources> |
Oops, something went wrong.